summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Host/common/Host.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index 7ac33801612..db8ac74adf0 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -761,6 +761,8 @@ Host::SetShortThreadName (lldb::pid_t pid, lldb::tid_t tid,
}
return Host::SetThreadName (pid, tid, namebuf);
}
+
+ ::free(namebuf);
return false;
}
OpenPOWER on IntegriCloud