Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/chpass Fixed memory leak (CID 978341)
details: https://anonhg.NetBSD.org/src/rev/86496cac72dc
branches: trunk
changeset: 811376:86496cac72dc
user: shm <shm%NetBSD.org@localhost>
date: Tue Oct 27 14:47:45 2015 +0000
description:
Fixed memory leak (CID 978341)
OK kamil@
diffstat:
usr.bin/chpass/edit.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r d027814a9a63 -r 86496cac72dc usr.bin/chpass/edit.c
--- a/usr.bin/chpass/edit.c Tue Oct 27 14:23:23 2015 +0000
+++ b/usr.bin/chpass/edit.c Tue Oct 27 14:47:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edit.c,v 1.21 2011/08/31 16:24:57 plunky Exp $ */
+/* $NetBSD: edit.c,v 1.22 2015/10/27 14:47:45 shm Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: edit.c,v 1.21 2011/08/31 16:24:57 plunky Exp $");
+__RCSID("$NetBSD: edit.c,v 1.22 2015/10/27 14:47:45 shm Exp $");
#endif
#endif /* not lint */
@@ -139,6 +139,7 @@
(void)fchown(fd, getuid(), getgid());
(void)fclose(fp);
+ free(bp);
}
int
Home |
Main Index |
Thread Index |
Old Index