|
From: Jeremy F. <je...@go...> - 2003-12-20 18:20:23
|
CVS commit by fitzhardinge:
Fix typo in VG_(munmap)() error checking, which made it never remove
any Segment mappings.
M +1 -1 vg_mylibc.c 1.63
--- valgrind/coregrind/vg_mylibc.c #1.62:1.63
@@ -307,5 +307,5 @@ Int VG_(munmap)( void* start, Int length
{
Int res = VG_(do_syscall)(__NR_munmap, (UInt)start, (UInt)length );
- if (!VG_(is_kerror))
+ if (!VG_(is_kerror)(res))
VG_(unmap_range)((Addr)start, length);
return VG_(is_kerror)(res) ? -1 : 0;
|