[Lldb-commits] [lldb] r183110 - Matched a vector new with vector delete.

Ashok Thirumurthi ashok.thirumurthi at intel.com
Mon Jun 3 08:53:40 PDT 2013


Author: athirumu
Date: Mon Jun  3 10:53:40 2013
New Revision: 183110

URL: http://llvm.org/viewvc/llvm-project?rev=183110&view=rev
Log:
Matched a vector new with vector delete.

Thanks to Daniel and valgrind.

Modified:
    lldb/trunk/source/Plugins/Process/POSIX/RegisterContextLinux_x86_64.cpp

Modified: lldb/trunk/source/Plugins/Process/POSIX/RegisterContextLinux_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/RegisterContextLinux_x86_64.cpp?rev=183110&r1=183109&r2=183110&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/RegisterContextLinux_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/RegisterContextLinux_x86_64.cpp Mon Jun  3 10:53:40 2013
@@ -102,7 +102,7 @@ RegisterContextLinux_x86_64::RegisterCon
 RegisterContextLinux_x86_64::~RegisterContextLinux_x86_64()
 {
     if (m_register_infos)
-        delete m_register_infos;
+        delete [] m_register_infos;
     m_register_infos = nullptr;
 }
 





More information about the lldb-commits mailing list