|
From: <sv...@va...> - 2012-04-02 15:47:00
|
bart 2012-04-02 16:46:51 +0100 (Mon, 02 Apr 2012)
New Revision: 12482
Log:
drd, realloc() intercept: Swap freeing and cleaning memory.
Modified files:
trunk/drd/drd_malloc_wrappers.c
Modified: trunk/drd/drd_malloc_wrappers.c (+1 -1)
===================================================================
--- trunk/drd/drd_malloc_wrappers.c 2012-04-02 16:45:51 +01:00 (rev 12481)
+++ trunk/drd/drd_malloc_wrappers.c 2012-04-02 16:46:51 +01:00 (rev 12482)
@@ -228,9 +228,9 @@
VG_(memcpy)(p_new, p_old, mc->size);
/* Free old memory. */
- VG_(cli_free)(p_old);
if (mc->size > 0)
s_stop_using_mem_callback(mc->data, mc->size);
+ VG_(cli_free)(p_old);
VG_(HT_remove)(s_malloc_list, (UWord)p_old);
/* Update state information. */
|