Bug 15654

Summary: Please close files after opening them :-)
Product: Rarian Reporter: Vincent Untz <vuntz>
Component: GeneralAssignee: Don Scorgie <Don>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vincent Untz 2008-04-22 09:59:28 UTC
In rrn_reg_parse_file_full, rrn_sect_parse_file_full, rrn_reg_parse_file and rrn_sect_parse_file, fopen() is called but the files are never closed. Please use fclose() after the loop that reads the file. Else, some bad failure can happen because too many files are opened (ie, fopen() fails after a while and it crashes in fgets).
Comment 1 Don Scorgie 2008-07-29 11:23:46 UTC
Fixed in revision 58 of SVN.  Will appear in 0.8.1

2008-07-29  Don Scorgie  <Don@Scorgie.org>
	
	* librarian/rarian-man.c: 
	* librarian/rarian-info.c:
	* librarian/rarian-reg-utils.c:
	* librarian/rarian-reg-full.c:
	Close files once they're used
	bug #15654
	

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.