GNOME Bugzilla – Bug 597144
missing call to pclose
Last modified: 2009-10-03 18:21:11 UTC
Forwarding https://bugzilla.novell.com/show_bug.cgi?id=543762 I just had a look at factory package gnome-commander-1.2.8.1-1.8 source code file gnome-commander-1.2.8.1/src/utils.cc function app_get_linked_libs local variable fd. I notice the following code FILE *fd = popen (cmd, "r"); but I fail to notice any matching call to pclose. This looks like a resource leak to me. Suggest add a call to pclose near the end of the block to plug the leak.
Hello, Could you create a patch for this bug? I mean you have noticed the leak and seem to know the way around the code so maybe you could provide a patch to review?
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.