Module Name: src Committed By: christos Date: Mon Feb 2 22:07:05 UTC 2015
Modified Files: src/lib/libc/gen: popen.c Log Message: CID/1267868: Resource leak "cur" To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/popen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/popen.c diff -u src/lib/libc/gen/popen.c:1.34 src/lib/libc/gen/popen.c:1.35 --- src/lib/libc/gen/popen.c:1.34 Tue Jan 20 13:31:25 2015 +++ src/lib/libc/gen/popen.c Mon Feb 2 17:07:05 2015 @@ -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 @@ popen(const char *cmd, const char *type) #ifdef _REENTRANT (void)rwlock_unlock(&pidlist_lock); #endif + pdes_error(pdes, cur); errno = serrno; return NULL; /* NOTREACHED */