diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pmdb/core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/pmdb/core.c b/usr.bin/pmdb/core.c index 4db57a26552..45d9b76e25d 100644 --- a/usr.bin/pmdb/core.c +++ b/usr.bin/pmdb/core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: core.c,v 1.7 2007/08/01 15:43:56 deraadt Exp $ */ +/* $OpenBSD: core.c,v 1.8 2007/08/01 15:44:37 deraadt Exp $ */ /* * Copyright (c) 2002 Jean-Francois Brousseau <krapht@secureops.com> * All rights reserved. @@ -128,6 +128,12 @@ free_core(struct pstate *ps) free(cf->segs); cf->segs = NULL; } + + if (cf->chdr != NULL) { + munmap(cf->chdr, cf->cfstat.st_size); + cf->chdr = NULL; + } + } void |