[haiku-commits] r37827 - haiku/trunk/src/bin/debug/profile

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 31 Jul 2010 20:29:01 +0200 (CEST)

Author: anevilyak
Date: 2010-07-31 20:29:01 +0200 (Sat, 31 Jul 2010)
New Revision: 37827
Changeset: http://dev.haiku-os.org/changeset/37827

Modified:
   haiku/trunk/src/bin/debug/profile/SharedImage.cpp
Log:
Don't free the symbol iterator on error here since the callers already do so, 
leading to a double free in such a case. Fixes CID 2008.



Modified: haiku/trunk/src/bin/debug/profile/SharedImage.cpp
===================================================================
--- haiku/trunk/src/bin/debug/profile/SharedImage.cpp   2010-07-31 18:19:10 UTC 
(rev 37826)
+++ haiku/trunk/src/bin/debug/profile/SharedImage.cpp   2010-07-31 18:29:01 UTC 
(rev 37827)
@@ -142,7 +142,6 @@
                        if (symbol == NULL || !symbols.AddItem(symbol)) {
                                delete symbol;
                                fprintf(stderr, "%s: Out of memory\n", 
kCommandName);
-                               debug_delete_symbol_iterator(iterator);
                                return B_NO_MEMORY;
                        }
                }


Other related posts:

  • » [haiku-commits] r37827 - haiku/trunk/src/bin/debug/profile - anevilyak