]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added missing VG_(cli_free)() call.
authorBart Van Assche <bvanassche@acm.org>
Sun, 20 Apr 2008 08:33:10 +0000 (08:33 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 20 Apr 2008 08:33:10 +0000 (08:33 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7895

exp-drd/drd_malloc_wrappers.c

index 4fb6310c3fc49eaec3c50b83ab34f3b5fcede16f..43f71b4457c3b3561e6e6281ce868ec269c47897 100644 (file)
@@ -39,7 +39,7 @@
 
 
 /*------------------------------------------------------------*/
-/*--- Defns                                                ---*/
+/*--- Definitions                                          ---*/
 /*------------------------------------------------------------*/
 
 
@@ -143,8 +143,10 @@ void drd_handle_free(ThreadId tid, Addr p)
   }
   else
   {
+    tl_assert(p == mc->data);
     if (mc->size > 0)
       s_stop_using_mem_callback(mc->data, mc->size);
+    VG_(cli_free)((void*)p);
     VG_(free)(mc);
   }
 }