summaryrefslogtreecommitdiff
path: root/sbin
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
parentadc661ee065c9e1029f2dccbadf8d92a3f26f65f (diff)
fix some leaks
ok miod@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsecctl/pfkey.c3
-rw-r--r--sbin/quotacheck/quotacheck.c4
-rw-r--r--sbin/scsi/scsi.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/sbin/ipsecctl/pfkey.c b/sbin/ipsecctl/pfkey.c
index 0c134162419..a0b7da073f0 100644
--- a/sbin/ipsecctl/pfkey.c
+++ b/sbin/ipsecctl/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.51 2010/10/06 22:19:20 mikeb Exp $ */
+/* $OpenBSD: pfkey.c,v 1.52 2012/03/24 15:39:54 jsg Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* Copyright (c) 2003, 2004 Markus Friedl <markus@openbsd.org>
@@ -1346,6 +1346,7 @@ pfkey_monitor(int opts)
free(data);
}
close(fd);
+ free(rset);
return 0;
}
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
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index 9c2bba0e106..0299c723945 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.25 2007/10/18 00:30:32 ray Exp $ */
+/* $OpenBSD: scsi.c,v 1.26 2012/03/24 15:39:54 jsg Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -235,6 +235,7 @@ void arg_put(void *hook, int letter, void *arg, int count, char *name)
break;
}
printf("%s ", p);
+ free(p);
}
break;