Don't forget to free the libcompression scratch buffer in the dtor.
authorJason Molenda <jmolenda@apple.com>
Tue, 18 Dec 2018 23:45:45 +0000 (23:45 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 18 Dec 2018 23:45:45 +0000 (23:45 +0000)
llvm-svn: 349580

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

index e63b51e..e0525bd 100644 (file)
@@ -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)