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 - FILE *fp getting leak in read_config_file function
Summary: FILE *fp getting leak in read_config_file function
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 critical
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 08:30 UTC by Nitz
Modified: 2015-05-03 02:28 UTC (History)
0 users

See Also:


Attachments
Patch for FILE *fp memory leak (3.55 KB, patch)
2015-05-01 08:30 UTC, Nitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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