summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-12-16 04:50:46 +0000
committerimp <imp@FreeBSD.org>1998-12-16 04:50:46 +0000
commit16794c966ed51b1c0450795c2c8a5c8d19f26464 (patch)
treef2b42b8cfa528d27fbc4d31d18a0a39654035c6d /usr.bin/find
parenta25b16eb03db268d43195f74278a7b7e91ccc062 (diff)
downloadFreeBSD-src-16794c966ed51b1c0450795c2c8a5c8d19f26464.zip
FreeBSD-src-16794c966ed51b1c0450795c2c8a5c8d19f26464.tar.gz
Return memory from setmode.
Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/function.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 1ffdd52..d8a590e 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -949,6 +949,7 @@ c_perm(perm)
err(1, "-perm: %s: illegal mode string", perm);
new->m_data = getmode(set, 0);
+ free(set);
return (new);
}
OpenPOWER on IntegriCloud