diff options
author | Will Dietz <w@wdtz.org> | 2017-11-27 18:30:05 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2017-11-27 18:30:05 -0600 |
commit | 964349e44d9859068eeb199c47336b06aae5450a (patch) | |
tree | 4f9bf40a6a37dc7d37c6326648887f6648e8b876 | |
parent | 21f515724c74d802bb89fdeb9e6dd24ad8497fb7 (diff) |
no "linenoiseFree" in linenoise-ng
-rw-r--r-- | src/nix/repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 28a8ebc8c..1adb816c5 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -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; |