Commit 00b49466 authored by Tiago Peixoto's avatar Tiago Peixoto

demangle.cc: Fix clang compilation issue

This fixes issue #319
parent 3f2a5d5f
Pipeline #199 failed with stage
in 3888 minutes and 56 seconds
......@@ -17,6 +17,7 @@
#include "demangle.hh"
#include <cxxabi.h>
#include <cstdlib>
std::string name_demangle(std::string name)
{
......@@ -25,6 +26,6 @@ std::string name_demangle(std::string name)
if (status != 0)
return name + " (cannot demangle symbol)";
std::string ret(realname);
free(realname);
std::free(realname);
return ret;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment