Bugzilla – Bug 544221
libmsn-3.9.97-1.1: two missing calls to fclose
Last modified: 2009-10-20 13:53:15 UTC
I just had a look at factory package libmsn-3.9.97-1.1 source code file libmsn-4.0-beta8/msn/util.cpp function libmsn_Siren7_DecodeVoiceClip local variable input. 1. I notice the following code input = fopen (old_voice.c_str(), "rb"); but I fail to notice any matching call to fclose. This looks like a resource leak to me. Suggest add a call to fclose near the end of the function to plug the leak. 2. Same package, same source code file, function libmsn_Siren7_EncodeVoiceClip, local variable input, same problem.
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.
. *** This bug has been marked as a duplicate of bug 442933 ***