summaryrefslogtreecommitdiff
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2012-03-24 15:39:55 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2012-03-24 15:39:55 +0000
commitbc46e895ffcece6fd546e2ed0676e4e13d0747fd (patch)
treecff5470ac52245eed20e6860469dafdf70896982 /sbin/quotacheck
parentadc661ee065c9e1029f2dccbadf8d92a3f26f65f (diff)
fix some leaks
ok miod@
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 6335753e731..df7ba9d5cf6 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quotacheck.c,v 1.26 2012/02/08 20:38:50 krw Exp $ */
+/* $OpenBSD: quotacheck.c,v 1.27 2012/03/24 15:39:54 jsg Exp $ */
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
/*
@@ -536,6 +536,8 @@ oneof_specname(char *target, char *list[], int cnt)
break;
}
+ free(targetdev);
+
if (i < cnt)
return (i);
else