Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/cdb CID 1135779: Fix resource leak
details: https://anonhg.NetBSD.org/src/rev/e1660eeb229e
branches: trunk
changeset: 325189:e1660eeb229e
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 10 20:58:45 2013 +0000
description:
CID 1135779: Fix resource leak
diffstat:
lib/libc/cdb/cdbr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ce7f635198f5 -r e1660eeb229e lib/libc/cdb/cdbr.c
--- a/lib/libc/cdb/cdbr.c Tue Dec 10 19:39:42 2013 +0000
+++ b/lib/libc/cdb/cdbr.c Tue Dec 10 20:58:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdbr.c,v 1.5 2013/12/05 21:17:23 joerg Exp $ */
+/* $NetBSD: cdbr.c,v 1.6 2013/12/10 20:58:45 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cdbr.c,v 1.5 2013/12/05 21:17:23 joerg Exp $");
+__RCSID("$NetBSD: cdbr.c,v 1.6 2013/12/10 20:58:45 christos Exp $");
#include "namespace.h"
@@ -119,6 +119,7 @@
}
if (sb.st_size >= SSIZE_MAX) {
+ close(fd);
errno = EINVAL;
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index