Module Name: src Committed By: shm Date: Tue Oct 27 14:47:45 UTC 2015
Modified Files: src/usr.bin/chpass: edit.c Log Message: Fixed memory leak (CID 978341) OK kamil@ To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/chpass/edit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/chpass/edit.c diff -u src/usr.bin/chpass/edit.c:1.21 src/usr.bin/chpass/edit.c:1.22 --- src/usr.bin/chpass/edit.c:1.21 Wed Aug 31 16:24:57 2011 +++ src/usr.bin/chpass/edit.c Tue Oct 27 14:47:45 2015 @@ -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 @@ display(char *tempname, int fd, struct p (void)fchown(fd, getuid(), getgid()); (void)fclose(fp); + free(bp); } int