[Bug 524532] New: enscript-1.6.4-155.9: missing call to fclose
http://bugzilla.novell.com/show_bug.cgi?id=524532 Summary: enscript-1.6.4-155.9: missing call to fclose Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: dcb314@hotmail.com QAContact: jsmeix@novell.com Found By: --- I just had a look at factory package enscript-1.6.4-155.9 For source code file enscript-1.6.4/src/util.c, around line 110 is the source code for the function read_config. I notice the following code fp = fopen (buffer_ptr (&fname), "r"); but no matching call to fclose. This looks like a resource leak to me. Suggest code rework. Maybe it would be enough to add fclose( fp); near the end of the function. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=524532
User werner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=524532#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=524532
https://bugzilla.novell.com/show_bug.cgi?id=524532#c3
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=524532
https://bugzilla.novell.com/show_bug.cgi?id=524532#c4
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com