|
From: <sv...@va...> - 2010-10-19 13:13:15
|
Author: tom
Date: 2010-10-19 14:12:59 +0100 (Tue, 19 Oct 2010)
New Revision: 11458
Log:
Avoid a double free when a binary has a build-id and no debuglink section.
Modified:
trunk/coregrind/m_debuginfo/readelf.c
Modified: trunk/coregrind/m_debuginfo/readelf.c
===================================================================
--- trunk/coregrind/m_debuginfo/readelf.c 2010-10-18 18:11:42 UTC (rev 11457)
+++ trunk/coregrind/m_debuginfo/readelf.c 2010-10-19 13:12:59 UTC (rev 11458)
@@ -1063,6 +1063,7 @@
if ((addr = open_debug_file(debugpath, buildid, 0, size)) == 0) {
ML_(dinfo_free)(debugpath);
+ debugpath = NULL;
}
}
|