From 5bc42c7163831e2118930b789096730989fd7836 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sat, 4 Mar 2006 20:32:52 +0000 Subject: Plug a mem leak; ok millert@ --- usr.bin/cap_mkdb/cap_mkdb.c | 5 +++-- 1 file 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 @@ -286,6 +286,7 @@ db_build(char **ifiles) if (*p == (info ? ',' : ':')) break; } + free(bp); } switch(st) { -- cgit v1.2.3