NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/50925: src/usr.sbin/sup/source/cvt.c:48]: (error) Resource leak: fp
>Number: 50925
>Category: bin
>Synopsis: src/usr.sbin/sup/source/cvt.c:48]: (error) Resource leak: fp
>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:30:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160308
>Organization:
>Environment:
>Description:
Source code is
if (fprintf(fp, "%ld\n", b) < 0) {
perror("fprintf");
return 1;
}
Suggest add missing call to fclose inside if.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index