From 30d2bd61ff5058b83786992e8e242dc14144243f Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 27 Dec 2020 09:49:16 -0600 Subject: [PATCH] Use std::free instead of C free. Fixes #671. --- src/engine/startup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/startup.cpp b/src/engine/startup.cpp index de0a4fec6..e0205bf59 100644 --- a/src/engine/startup.cpp +++ b/src/engine/startup.cpp @@ -14,7 +14,7 @@ Distributed under the Boost Software License, Version 1.0. #include "output.h" #include "variable.h" -#include +#include #include #include @@ -160,7 +160,7 @@ bool b2::startup::bootstrap(FRAME *frame) const std::string b2_exe_path{b2_exe_path_pchar}; if (b2_exe_path_pchar) { - free(b2_exe_path_pchar); + std::free(b2_exe_path_pchar); } const std::string boost_build_jam{"boost-build.jam"}; std::string b2_file_path;