summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-02-03 01:54:25 +0000
committerpfg <pfg@FreeBSD.org>2013-02-03 01:54:25 +0000
commite1f3d4e1aa9f4cf116f0046597bb1fe1ee36951b (patch)
treebebefe31fd396097dcde00885615368f76943486
parentc2bbbcc61a87cb2be75159e9e9cb8e2beac0295b (diff)
downloadFreeBSD-src-e1f3d4e1aa9f4cf116f0046597bb1fe1ee36951b.zip
FreeBSD-src-e1f3d4e1aa9f4cf116f0046597bb1fe1ee36951b.tar.gz
crunch: Sync some NetBSD changes
Fix a couple of free's in previous commit. Obtained from: NetBSD MFC after: 1 week
-rw-r--r--usr.sbin/crunch/crunchide/exec_elf32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c
index c1a0477..9274f89 100644
--- a/usr.sbin/crunch/crunchide/exec_elf32.c
+++ b/usr.sbin/crunch/crunchide/exec_elf32.c
@@ -384,6 +384,8 @@ out:
if (symtabp != NULL)
free(symtabp);
if (strtabp != NULL)
+ free(strtabp);
+ if (nstrtabp != NULL)
free(nstrtabp);
return (rv);
OpenPOWER on IntegriCloud