Summary: | Memory leak in halbackend.cpp | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Chris Spiegel <cspiegel> |
Component: | media | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Chris Spiegel
2005-12-03 21:08:07 UTC
SVN commit 551884 by ervin: Avoid to leak devices lists. Thanks for pointing this. BUG: 117623 M +4 -0 halbackend.cpp --- branches/KDE/3.5/kdebase/kioslave/media/mediamanager/halbackend.cpp #551883:551884 @@ -84,6 +84,8 @@ } } + libhal_free_string_array( halDeviceList ); + DBusError error; dbus_error_init(&error); libhal_ctx_shutdown(m_halContext, &error); @@ -173,6 +175,8 @@ for (int i = 0; i < numDevices; i++) AddDevice(halDeviceList[i], false); + libhal_free_string_array( halDeviceList ); + return true; } |