[Bug 540497] New: libvirt-cim-0.5.6-2.2: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=540497 Summary: libvirt-cim-0.5.6-2.2: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 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 libvirt-cim-0.5.6-2.2 For source code file libvirt-cim-0.5.6/src/Virt_RASD.c around line 670, function _get_rasds is the following code tmp_dev = calloc(1, sizeof(*tmp_dev)); tmp_dev = virt_device_dup(&devs[count - 1]); This is an obvious memory leak, since the memory allocated on the first line cannot be freed after the second line. Suggest remove first line. -- 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=540497 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jfehlig@novell.com |ovo.novell.com | -- 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=540497 User jfehlig@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540497#c1 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from James Fehlig <jfehlig@novell.com> 2009-09-22 11:15:22 MDT --- Heh, how did you come across that? valgrind? Code analyzer? Anyhow, that function is quite a mess. I'll cook up a patch to clean it up and submit upstream. -- 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=540497 User jfehlig@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540497#c2 --- Comment #2 from James Fehlig <jfehlig@novell.com> 2009-09-22 12:25:15 MDT --- Created an attachment (id=319363) --> (http://bugzilla.novell.com/attachment.cgi?id=319363) Patch sent upstream to cleanup _get_rasds() -- 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=540497 User jfehlig@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540497#c3 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Milestone 8 --- Comment #3 from James Fehlig <jfehlig@novell.com> 2009-09-22 12:47:39 MDT --- New libvirt-cim package submitted to factory that contains patch in #2. -- 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=540497 http://bugzilla.novell.com/show_bug.cgi?id=540497#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (540497) was mentioned in https://build.opensuse.org/request/show/20834 Factory / libvirt-cim -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com