summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2018-12-18 23:45:45 +0000
committerJason Molenda <jmolenda@apple.com>2018-12-18 23:45:45 +0000
commit8460bb0583963c1ed146e2fb51302589f3955d30 (patch)
tree69641888bfcf58eb6d6bed66b7760aff46d632f8
parent9efcff56023b2a25dd3c8b8d2f7107f44dcad3ef (diff)
downloadbcm5719-llvm-8460bb0583963c1ed146e2fb51302589f3955d30.tar.gz
bcm5719-llvm-8460bb0583963c1ed146e2fb51302589f3955d30.zip
Don't forget to free the libcompression scratch buffer in the dtor.
llvm-svn: 349580
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index e63b51e49be..e0525bdcf34 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -81,6 +81,9 @@ GDBRemoteCommunication::~GDBRemoteCommunication() {
Disconnect();
}
+ if (m_decompression_scratch)
+ free (m_decompression_scratch);
+
// Stop the communications read thread which is used to parse all incoming
// packets. This function will block until the read thread returns.
if (m_read_thread_enabled)
OpenPOWER on IntegriCloud