[gupnp] Memleaks in gupnp-dlna



Hi,

o-hand bugzilla seems to miss a gupnp-dlna component, so for reference here

while looking for the leaks in rygel's mediathek plugin, I also found two leaks in gupnp-dlna (0.5.0):

1) The GString in gupnp_dlna_load_profiles_from_file leaks under certain circumstances. This is easy to fix by moving g_string_free after the out: label

2) the gst caps there seem to leak:

==8757== 2,756 (1,696 direct, 1,060 indirect) bytes in 53 blocks are definitely lost in loss record 5,954 of 6,030
==8757==    at 0x400677E: malloc (vg_replace_malloc.c:195)
==8757==    by 0xA0DFA4: g_malloc (in /lib/libglib-2.0.so.0.2600.0)
==8757== by 0xA26050: g_slice_alloc (in /lib/libglib-2.0.so.0.2600.0) ==8757== by 0x2C5275F: gst_caps_new_empty (in /usr/lib/libgstreamer-0.10.so.0.27.0) ==8757== by 0x2C527F7: gst_caps_new_any (in /usr/lib/libgstreamer-0.10.so.0.27.0) ==8757== by 0x4055F8C: process_restriction.clone.2 (gupnp-dlna-load.c:496) ==8757== by 0x4056877: gupnp_dlna_load_profiles_from_file (gupnp-dlna-load.c:546) ==8757== by 0x4056F6E: gupnp_dlna_load_profiles_from_dir (gupnp-dlna-load.c:892) ==8757== by 0x4057037: gupnp_dlna_load_profiles_from_disk (gupnp-dlna-load.c:928) ==8757== by 0x4053B40: gupnp_dlna_discoverer_class_intern_init (gupnp-dlna-discoverer.c:241) ==8757== by 0xB49237: g_type_class_ref (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0xB2CF72: g_object_new_valist (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0xB2D2C6: g_object_new (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0x4053FE8: gupnp_dlna_discoverer_new (gupnp-dlna-discoverer.c:277) ==8757== by 0x8063816: rygel_source_connection_manager_real_constructed (rygel-source-connection-manager.c:228) ==8757== by 0xB2C533: g_object_newv (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0xB2D1B0: g_object_new_valist (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0xB2D2C6: g_object_new (in /lib/libgobject-2.0.so.0.2600.0) ==8757== by 0x40343A5: gupnp_resource_factory_create_service (gupnp-resource-factory.c:342)
==8757==    by 0x40310E0: gupnp_device_get_service (gupnp-device.c:117)


--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]