How to Remove Memory Leak

Umakant Goyal umakantgoyal1 at gmail.com
Tue Dec 13 03:13:42 PST 2011


Hi All,

I am initializing the GStreaming using gst_init (NULL, NULL) API and then
deinit the same using gst_deinit () API.
I run my binary using valgrind and found that Leak Summary of Valgrind
showing lot of *possibly lost* and *still reachable* in Gstreamer.  Below
Sharing the some logs of valgrind:

==31179== 4 bytes in 1 blocks are still reachable in loss record 8 of 1,305
==31179==    at 0x4005E5E: malloc (vg_replace_malloc.c:236)
==31179==    by 0x42A60DC: g_malloc (gmem.c:164)
==31179==    by 0x42BE0FD: g_memdup (gstrfuncs.c:130)
==31179==    by 0x4101D16: g_signal_newv (gsignal.c:1620)
==31179==    by 0x410242B: g_signal_new_valist (gsignal.c:1697)
==31179==    by 0x41025AB: g_signal_new (gsignal.c:1334)
==31179==    by 0x403821C: gst_object_class_intern_init (gstobject.c:202)
==31179==    by 0x410E955: g_type_class_ref (gtype.c:2212)
==31179==    by 0x4035533: init_post (gst.c:670)
==31179==    by 0x42AC3E2: g_option_context_parse (goption.c:1951)
==31179==    by 0x4034FB1: gst_init_check (gst.c:439)
==31179==    by 0x40350E1: gst_init (gst.c:493)
==31179==
==31179== 4 bytes in 1 blocks are still reachable in loss record 9 of 1,305
==31179==    at 0x4005E5E: malloc (vg_replace_malloc.c:236)
==31179==    by 0x42A60DC: g_malloc (gmem.c:164)
==31179==    by 0x42BE0FD: g_memdup (gstrfuncs.c:130)
==31179==    by 0x4101D16: g_signal_newv (gsignal.c:1620)
==31179==    by 0x410242B: g_signal_new_valist (gsignal.c:1697)
==31179==    by 0x41025AB: g_signal_new (gsignal.c:1334)
==31179==    by 0x4038273: gst_object_class_intern_init (gstobject.c:214)
==31179==    by 0x410E955: g_type_class_ref (gtype.c:2212)
==31179==    by 0x4035533: init_post (gst.c:670)
==31179==    by 0x42AC3E2: g_option_context_parse (goption.c:1951)
==31179==    by 0x4034FB1: gst_init_check (gst.c:439)
==31179==    by 0x40350E1: gst_init (gst.c:493)

Please suggest me how to remove above given memory leaks.

Thanks in Advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111213/4f35f13d/attachment-0001.htm>


More information about the gstreamer-devel mailing list