[Bug 547896] New: libqt4-sql-plugins-4.5.3-2.1: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=547896 Summary: libqt4-sql-plugins-4.5.3-2.1: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package libqt4-sql-plugins-4.5.3-2.1 source code file qt-x11-opensource-src-4.5.3/src/gui/image/qpixmapfilter.cpp function convolute I notice the following code int *fixedKernel = new int[kernelWidth*kernelHeight]; but I fail to notice any matching call to free. This looks like a memory leak to me. Suggest add call to free near the end of the block. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=547896
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=547896
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547896#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=547896
User dmueller@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547896#c2
Dirk Mueller
http://bugzilla.novell.com/show_bug.cgi?id=547896
User dcb314@hotmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547896#c3
--- Comment #3 from David Binderman
David, in case the issues are not introduced by a patch local to openSUSE please report the issues upstream.
I have found that about 12% of all the openSuse packages are from Source Forge, so I will now report problems in those packages there. The rest of the packages, about 88%, I will ignore for now.
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.
Looks good to me.
Note that it is perfectly fine to have "resource leaks" at the end of a program as the kernel will clean up for you.
Thanks for the reminder. I think some resource leaks are more important than others. Certainly, leaks in short lived programs aren't important. Leaks in long lived programs may be more important. It is worth remembering that the kernel can only clean up when a program exits. If the program never exits, for example a lot of network code and X11 code, then there can be no cleanup.
Manually freeing them only increases binary size and runtime.
True, but let's not forget that every program's resource leak implies a space and time cost for kernel data structures, too. Thanks for your guidance. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=547896
User swamp@suse.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547896#c4
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com