no "linenoiseFree" in linenoise-ng

This commit is contained in:
Will Dietz 2017-11-27 18:30:05 -06:00
parent 21f515724c
commit 964349e44d

View file

@ -185,7 +185,7 @@ void NixRepl::mainLoop(const std::vector<std::string> & files)
bool NixRepl::getLine(string & input, const std::string &prompt)
{
char * s = linenoise(prompt.c_str());
Finally doFree([&]() { linenoiseFree(s); });
Finally doFree([&]() { free(s); });
if (!s) return false;
input += s;
return true;