[Bug 543132] New: cpio-2.10-3.6: missing call to fclose
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132 Summary: cpio-2.10-3.6: 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: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package cpio-2.10-3.6 source code file cpio-2.10/src/copyin.c function process_copy_in local variable tty_out. I notice the following code tty_out = fopen (TTY_NAME, "w"); but I fail to notice a matching call to fclose. This looks like a resource leak to me. Suggest add call to fclose 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.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132
Marcus Meissner
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132
Michal Seben
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132
User rschweikert@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543132#c1
Robert Schweikert
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543132#c2
--- Comment #2 from Richard Guenther
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=543132
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543132#c3
Michal Seben
participants (1)
-
bugzilla_noreply@novell.com