From 9ee2bcf0a5f44b8f414f893bb3d001ec8abb97c8 Mon Sep 17 00:00:00 2001 From: John Jones Date: Thu, 8 Mar 2018 11:05:34 -0500 Subject: [PATCH] avoid double free --- src/rpc/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 29d5051..c4030f8 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -221,13 +221,13 @@ void cli::getline( const fc::string& prompt, fc::string& line) { if (*line_read) add_history(line_read); - free(line_read); } catch(...) { free(line_read); throw; } + free(line_read); }).wait(); } else