Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/common CID 272343: Fix resource leak
details: https://anonhg.NetBSD.org/src/rev/77ea403d1ea7
branches: trunk
changeset: 791676:77ea403d1ea7
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 27 21:17:36 2013 +0000
description:
CID 272343: Fix resource leak
diffstat:
external/bsd/nvi/dist/common/recover.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 14cb001d00a9 -r 77ea403d1ea7 external/bsd/nvi/dist/common/recover.c
--- a/external/bsd/nvi/dist/common/recover.c Wed Nov 27 21:16:10 2013 +0000
+++ b/external/bsd/nvi/dist/common/recover.c Wed Nov 27 21:17:36 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: recover.c,v 1.2 2013/11/22 15:52:05 christos Exp $ */
+/* $NetBSD: recover.c,v 1.3 2013/11/27 21:17:36 christos Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -760,6 +760,7 @@
/* We believe the file is recoverable. */
F_SET(ep, F_RCV_ON);
+ free(pathp);
return (0);
}
Home |
Main Index |
Thread Index |
Old Index