|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: malloc.c,v 1.178 2015/12/30 06:01:18 tedu Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: malloc.c,v 1.179 2015/12/30 06:04:39 tedu Exp $ */ |
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> |
|
|
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> |
|
|
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> |
|
|
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> |
|
@ -1919,8 +1919,10 @@ malloc_dump(int fd) |
|
|
if (p == NULL) |
|
|
if (p == NULL) |
|
|
continue; |
|
|
continue; |
|
|
r = find(pool, p); |
|
|
r = find(pool, p); |
|
|
if (r == NULL) |
|
|
|
|
|
|
|
|
if (r == NULL) { |
|
|
wrterror("bogus pointer in malloc_dump", p); |
|
|
wrterror("bogus pointer in malloc_dump", p); |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
free_bytes(pool, r, p); |
|
|
free_bytes(pool, r, p); |
|
|
pool->delayed_chunks[i] = NULL; |
|
|
pool->delayed_chunks[i] = NULL; |
|
|
} |
|
|
} |
|
|