]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
memcheck: Fixed a bug in the address ranges reported in an error message. Closes...
authorBart Van Assche <bvanassche@acm.org>
Mon, 9 May 2011 10:46:55 +0000 (10:46 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 9 May 2011 10:46:55 +0000 (10:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11734

memcheck/mc_leakcheck.c

index 2da1cb95ad95ad5f9f135b1db3892096b63f203b..016109c75a5405bb08798c73644ef4e36158e1d5 100644 (file)
@@ -1005,7 +1005,7 @@ void MC_(detect_memory_leaks) ( ThreadId tid, LeakCheckMode mode )
 
       } else {
          VG_(umsg)("Block 0x%lx..0x%lx overlaps with block 0x%lx..0x%lx",
-                   start1, end1, start1, end2);
+                   start1, end1, start2, end2);
          VG_(umsg)("This is usually caused by using VALGRIND_MALLOCLIKE_BLOCK");
          VG_(umsg)("in an inappropriate way.");
          tl_assert (0);