Bugzilla – Bug 525390
hatari-0.50-247.51: missing call to closedir
Last modified: 2009-10-23 23:40:52 UTC
I just had a look at factory package hatari-0.50-247.51 For source code file hatari-0.50/src/screenSnapShot.c around line 50 is the source code for the function ScreenSnapShot_GetNum. I notice the following line of code DIR *workingdir = opendir(szWorkingDir); but no corresponding call to closedir. This looks like a resource leak to me. Suggest add call to closedir.
David, in case the issues are not introduced by a patch local to openSUSE please report the issues upstream. Packagers, please do not add openSUSE-local patches to fix this kind of errors but forward the bugs upstream and close the bugs as RESOLVED UPSTREAM. Note that it is perfectly fine to have "resource leaks" at the end of a program as the kernel will clean up for you. Manually freeing them only increases binary size and runtime.
Thanks! http://developer.berlios.de/bugs/?func=detailbug&bug_id=16364&group_id=10436