NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/46560: Memory leak in citrus_mapper.c
>Number: 46560
>Category: lib
>Synopsis: Memory leak in citrus_mapper.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 08 07:45:00 +0000 2012
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Memory leak in error path in function _citrus_mapper_create_area.
>How-To-Repeat:
>Fix:
diff -u -p -r1.9 citrus_mapper.c
--- lib/libc/citrus/citrus_mapper.c 19 Nov 2011 18:43:40 -0000 1.9
+++ lib/libc/citrus/citrus_mapper.c 8 Jun 2012 05:53:57 -0000
@@ -102,6 +102,7 @@ _citrus_mapper_create_area(
}
ma->ma_dir = strdup(area);
if (ma->ma_dir == NULL) {
+ free(ma);
ret = errno;
goto quit;
}
Home |
Main Index |
Thread Index |
Old Index