From 964349e44d9859068eeb199c47336b06aae5450a Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 27 Nov 2017 18:30:05 -0600 Subject: [PATCH] no "linenoiseFree" in linenoise-ng --- src/nix/repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 & 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;