avoid double free

This commit is contained in:
John Jones 2018-03-08 11:05:34 -05:00
parent 2017ed911a
commit 9ee2bcf0a5

View file

@ -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