diff --git a/source/matplot/util/common.cpp b/source/matplot/util/common.cpp index 58eb1ea6..557a3e5b 100644 --- a/source/matplot/util/common.cpp +++ b/source/matplot/util/common.cpp @@ -51,7 +51,7 @@ namespace matplot { } std::string run_and_get_output(const std::string &cmd) { - std::unique_ptr pipe(POPEN(cmd.c_str(), "r"), + std::unique_ptr pipe(POPEN(cmd.c_str(), "r"), PCLOSE); if (!pipe) { throw std::runtime_error("popen() failed!");