NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/50921: src/sbin/raidctl/rf_configure.c:512]: (error) Memory leak: table
>Number: 50921
>Category: bin
>Synopsis: src/sbin/raidctl/rf_configure.c:512]: (error) Memory leak: table
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 09 11:10:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160308
>Organization:
>Environment:
>Description:
Source code is
if (table[i] == NULL) {
warnx("rf_ReadSpareTable: Unable to allocate table");
return (NULL); /* XXX should cleanup too! */
}
Suggest add missing call to free inside the if.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index