From: Nicholas Nethercote Date: Tue, 16 Aug 2005 03:34:56 +0000 (+0000) Subject: wibbles X-Git-Tag: svn/VALGRIND_3_1_0~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5f110a674ed31a7cd5d02e77c1be83b4cfacdae;p=thirdparty%2Fvalgrind.git wibbles git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4433 --- diff --git a/massif/ms_main.c b/massif/ms_main.c index c44e2a11c7..03fb3361fb 100644 --- a/massif/ms_main.c +++ b/massif/ms_main.c @@ -782,7 +782,7 @@ static void* ms_realloc ( ThreadId tid, void* p_old, SizeT new_size ) VGP_PUSHCC(VgpCliMalloc); - // First try and find the block. + // Remove the old block hc = VG_(HT_remove)(malloc_list, (UWord)p_old); if (hc == NULL) { VGP_POPCC(VgpCliMalloc); diff --git a/memcheck/mac_malloc_wrappers.c b/memcheck/mac_malloc_wrappers.c index d72ec22067..de6d7e1508 100644 --- a/memcheck/mac_malloc_wrappers.c +++ b/memcheck/mac_malloc_wrappers.c @@ -297,7 +297,7 @@ void MAC_(handle_free) ( ThreadId tid, Addr p, UInt rzB, MAC_AllocKind kind ) if (mc == NULL) { MAC_(record_free_error) ( tid, p ); } else { - /* check if its a matching free() / delete / delete [] */ + /* check if it is a matching free() / delete / delete [] */ if (kind != mc->allockind) { MAC_(record_freemismatch_error) ( tid, p, mc ); }