mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
drd, realloc() intercept: Swap freeing and cleaning memory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12482
This commit is contained in:
parent
73f7a907d5
commit
4d684ffc0d
@ -228,9 +228,9 @@ static void* drd_realloc(ThreadId tid, void* p_old, SizeT new_size)
|
||||
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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user