Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen CID/1267868: Resource leak "cur"
details: https://anonhg.NetBSD.org/src/rev/ed0c1d746696
branches: trunk
changeset: 335964:ed0c1d746696
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 02 22:07:05 2015 +0000
description:
CID/1267868: Resource leak "cur"
diffstat:
lib/libc/gen/popen.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 67cd97a0e11b -r ed0c1d746696 lib/libc/gen/popen.c
--- a/lib/libc/gen/popen.c Mon Feb 02 22:03:45 2015 +0000
+++ b/lib/libc/gen/popen.c Mon Feb 02 22:07:05 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: popen.c,v 1.34 2015/01/20 18:31:25 christos Exp $ */
+/* $NetBSD: popen.c,v 1.35 2015/02/02 22:07:05 christos Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 5/3/95";
#else
-__RCSID("$NetBSD: popen.c,v 1.34 2015/01/20 18:31:25 christos Exp $");
+__RCSID("$NetBSD: popen.c,v 1.35 2015/02/02 22:07:05 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -194,6 +194,7 @@
#ifdef _REENTRANT
(void)rwlock_unlock(&pidlist_lock);
#endif
+ pdes_error(pdes, cur);
errno = serrno;
return NULL;
/* NOTREACHED */
Home |
Main Index |
Thread Index |
Old Index