[Bug 533454] New: at-3.1.8-1074.1: two resource leaks
http://bugzilla.novell.com/show_bug.cgi?id=533454 Summary: at-3.1.8-1074.1: two resource leaks Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem 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 at-3.1.8-1074.1 For source code file at-3.1.8/at.c I notice two problems 1. around line i630 is the source code for the function process_jobs. I notice the following line of code if ((spool = opendir(".")) == NULL) but I fail to notice a matching call to closedir. This looks like a resource leak to me. Suggest add call to closedir. 2. Same file, same function is the following line of code fp = fopen(dirent->d_name, "r"); with no matching call to fclose. Suggest add one. -- 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=533454
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=533454
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=533454#c1
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=533454
http://bugzilla.novell.com/show_bug.cgi?id=533454#c2
--- Comment #2 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com