NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/50711: src/lib/libcompat/regexp/regexp.c:250]: (error) Memory leak: r
>Number: 50711
>Category: lib
>Synopsis: src/lib/libcompat/regexp/regexp.c:250]: (error) Memory leak: r
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 26 09:00:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160125
>Organization:
>Environment:
>Description:
Source code is
if (reg(0, &flags) == NULL)
return(NULL);
Something like
if (reg(0, &flags) == NULL)
{
free(r);
return(NULL);
}
might be a suitable replacement.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index