[Lldb-commits] [lldb] r203312 - Fix a small inferior process memory leak in SystemRuntimeMacOSX::PopulatePendingItemsForQueue().

Jason Molenda jmolenda at apple.com
Fri Mar 7 15:28:55 PST 2014


Author: jmolenda
Date: Fri Mar  7 17:28:54 2014
New Revision: 203312

URL: http://llvm.org/viewvc/llvm-project?rev=203312&view=rev
Log:
Fix a small inferior process memory leak in SystemRuntimeMacOSX::PopulatePendingItemsForQueue().

Modified:
    lldb/trunk/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp

Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp?rev=203312&r1=203311&r2=203312&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp Fri Mar  7 17:28:54 2014
@@ -566,6 +566,8 @@ SystemRuntimeMacOSX::PopulatePendingItem
 
                     queue->PushPendingQueueItem (queue_item_sp);
                 }
+                m_page_to_free = ret.item_buffer_ptr;
+                m_page_to_free_size = ret.item_buffer_size;
             }
         }
     }





More information about the lldb-commits mailing list