summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-03-04 20:32:52 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-03-04 20:32:52 +0000
commit5bc42c7163831e2118930b789096730989fd7836 (patch)
tree527a28b68a056fddfb4e589c008d5586b99ae41f
parent38fc26e9035552dd27c8e576898b0308bcecc81f (diff)
Plug a mem leak; ok millert@
-rw-r--r--usr.bin/cap_mkdb/cap_mkdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c
index 1df575c3735..37b4f9fdf88 100644
--- a/usr.bin/cap_mkdb/cap_mkdb.c
+++ b/usr.bin/cap_mkdb/cap_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cap_mkdb.c,v 1.13 2003/09/26 21:25:34 tedu Exp $ */
+/* $OpenBSD: cap_mkdb.c,v 1.14 2006/03/04 20:32:51 otto Exp $ */
/* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cap_mkdb.c 8.2 (Berkeley) 4/27/95";
#endif
-static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.13 2003/09/26 21:25:34 tedu Exp $";
+static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.14 2006/03/04 20:32:51 otto Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -286,6 +286,7 @@ db_build(char **ifiles)
if (*p == (info ? ',' : ':'))
break;
}
+ free(bp);
}
switch(st) {