We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2968

Summary: FILE *fp getting leak in read_config_file function
Product: SDL_mixer Reporter: Nitz <nitin.j4>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   
Attachments: Patch for FILE *fp memory leak

Description Nitz 2015-05-01 08:30:31 UTC
Created attachment 2142 [details]
Patch for FILE *fp memory leak

In function read_config_file(const char *name)


FILE *fp getting leak at many places when function returns -2.

Patch is attached.


Thanks!!!
Comment 1 Sam Lantinga 2015-05-03 02:28:09 UTC
Thanks!
https://hg.libsdl.org/SDL_mixer/rev/a9867904addc