From: Philippe Waroquiers Date: Mon, 10 Oct 2016 19:33:38 +0000 (+0000) Subject: Fix corruption introduced by revision 16033 X-Git-Tag: svn/VALGRIND_3_13_0~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b9c86a6afb567054b2e2546f1f38dd352943a7;p=thirdparty%2Fvalgrind.git Fix corruption introduced by revision 16033 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16036 --- diff --git a/coregrind/m_redir.c b/coregrind/m_redir.c index 02b759671d..3e35da0ad5 100644 --- a/coregrind/m_redir.c +++ b/coregrind/m_redir.c @@ -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); }