diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 20:17:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 20:17:04 +0000 |
commit | 5df90014c2eec37166d8bc1e4e31dea275349294 (patch) | |
tree | 8f5e4643701f3294e4e2a1684cedbba4a72ea898 /bin | |
parent | 85467f5094b0eb068d211d7a142e30426f199d62 (diff) |
memory leak in one more case, found by parfait; ok jsg
Diffstat (limited to 'bin')
-rw-r--r-- | bin/pax/sel_subs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/sel_subs.c b/bin/pax/sel_subs.c index 625547d506a..8f21814402b 100644 --- a/bin/pax/sel_subs.c +++ b/bin/pax/sel_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sel_subs.c,v 1.19 2009/10/27 23:59:22 deraadt Exp $ */ +/* $OpenBSD: sel_subs.c,v 1.20 2009/11/12 20:17:03 deraadt Exp $ */ /* $NetBSD: sel_subs.c,v 1.5 1995/03/21 09:07:42 cgd Exp $ */ /*- @@ -385,6 +385,7 @@ trng_add(char *str) default: paxwarn(1, "Bad option %c with time range %s", *flgpt, str); + (void)free((char *)pt); goto out; } ++flgpt; |