diff --git a/src/actsim_agent/downloader.cpp b/src/actsim_agent/downloader.cpp index e16b3cd..d2709e4 100644 --- a/src/actsim_agent/downloader.cpp +++ b/src/actsim_agent/downloader.cpp @@ -297,7 +297,7 @@ bool Downloader::fetch_design([[maybe_unused]]const db::uuid_t& id, std::string& // and return the name of the file we just created design = std::string(temp_name); - delete temp_name; + delete[] temp_name; return true; }