]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge from trunk:
authorJulian Seward <jseward@acm.org>
Mon, 17 Oct 2016 19:21:53 +0000 (19:21 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 17 Oct 2016 19:21:53 +0000 (19:21 +0000)
  16036  Fix corruption introduced by revision 16033

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16061

coregrind/m_redir.c

index 02b759671d9fbaa3c1caa80080c7ef424f6e2434..3e35da0ad5ff03b9f929253dea82f05f93dc00cd 100644 (file)
@@ -1821,7 +1821,7 @@ static void handle_require_text_symbols ( const DebugInfo* di )
 
    /* All required specs were found.  Just free memory and return. */
    for (i = 0; i < VG_(sizeXA)(fnpatts); i++)
-      VG_(free)(VG_(indexXA)(fnpatts, i));
+      VG_(free)(*(HChar**) VG_(indexXA)(fnpatts, i));
    VG_(deleteXA)(fnpatts);
 }