about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-11-28T00·30-0600
committerWill Dietz <w@wdtz.org>2017-11-28T00·30-0600
commit964349e44d9859068eeb199c47336b06aae5450a (patch)
tree4f9bf40a6a37dc7d37c6326648887f6648e8b876
parent21f515724c74d802bb89fdeb9e6dd24ad8497fb7 (diff)
no "linenoiseFree" in linenoise-ng
-rw-r--r--src/nix/repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 28a8ebc8c499..1adb816c5bf0 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;