Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/citrus Henning Petersen in PR lib/46560: fix memory...
details: https://anonhg.NetBSD.org/src/rev/538362a9d73f
branches: trunk
changeset: 779646:538362a9d73f
user: martin <martin%NetBSD.org@localhost>
date: Fri Jun 08 07:49:42 2012 +0000
description:
Henning Petersen in PR lib/46560: fix memory leak in error path
diffstat:
lib/libc/citrus/citrus_mapper.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r f32228196d99 -r 538362a9d73f lib/libc/citrus/citrus_mapper.c
--- a/lib/libc/citrus/citrus_mapper.c Fri Jun 08 07:18:58 2012 +0000
+++ b/lib/libc/citrus/citrus_mapper.c Fri Jun 08 07:49:42 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_mapper.c,v 1.9 2011/11/19 18:43:40 tnozaki Exp $ */
+/* $NetBSD: citrus_mapper.c,v 1.10 2012/06/08 07:49:42 martin Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_mapper.c,v 1.9 2011/11/19 18:43:40 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_mapper.c,v 1.10 2012/06/08 07:49:42 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -102,6 +102,7 @@
}
ma->ma_dir = strdup(area);
if (ma->ma_dir == NULL) {
+ free(ma);
ret = errno;
goto quit;
}
Home |
Main Index |
Thread Index |
Old Index