Fixed CSV2YAML not freeing memory (#4542)

* Fixes #4541.
* CSV2YAML tool will now free the memory on each database conversion.
Thanks to @Lemongrass3110!
This commit is contained in:
Aleos 2020-01-17 19:13:47 -05:00 committed by GitHub
parent 4f0894c4f9
commit 69b68bc2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,8 @@ bool process( const std::string& type, uint32 version, const std::vector<std::st
std::ofstream out;
body.~Emitter();
new (&body) YAML::Emitter();
out.open(to);
if (!out.is_open()) {