diff options
author | Shea Levy <shea@shealevy.com> | 2017-12-11T12·52-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2017-12-11T12·52-0500 |
commit | 5ba5ca78881173e5e23bfb3295a17561c6530c8b (patch) | |
tree | a240b876dc59e2469019142ae92058101269ffb9 /src/nix/repl.cc | |
parent | 0b59882fe33d375019f9f6f760144151c2a5aa4b (diff) | |
parent | e50d7335bf82f03c5a427892060819afcb32d086 (diff) |
Merge branch 'feature/linenoise-ng' of git://github.com/dtzWill/nix
Diffstat (limited to 'src/nix/repl.cc')
-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 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; |