GNOME Bugzilla – Bug 775887
qtdemux/xmptag: memory leak in gst_tag_list_from_xmp_buffer
Last modified: 2016-12-13 09:45:57 UTC
This file causes a memory leak: http://samples.mplayerhq.hu/ffmpeg-bugs/trac/ticket5624/2_8bv_4444_int.mov ASAN error: ==3135==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x4d4e38 in malloc (/usr/bin/gst-discoverer-1.0+0x4d4e38) #1 0x7f1a58727c98 in g_malloc /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gmem.c:94 #2 0x7f1a587417fe in g_strdup /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gstrfuncs.c:363 #3 0x7f1a5a19d3a6 in gst_tag_list_from_xmp_buffer /f/gstreamer/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c:1316:46 #4 0x7f1a4c1fd66c in qtdemux_parse_udta /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:12531:18 #5 0x7f1a4c1c44d1 in qtdemux_parse_tree /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:12875:5 #6 0x7f1a4c1b4d4a in gst_qtdemux_loop_state_header /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:4228:7 #7 0x7f1a4c1b4d4a in gst_qtdemux_loop /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:5765 #8 0x7f1a5954ca03 in gst_task_func /f/gstreamer/gstreamer/gst/gsttask.c:334:5 #9 0x7f1a5874a857 in g_thread_pool_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthreadpool.c:307 #10 0x7f1a58749ec4 in g_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthread.c:784 #11 0x7f1a581c6453 in start_thread (/lib64/libpthread.so.0+0x7453) #12 0x7f1a57cf65dc in clone (/lib64/libc.so.6+0xe75dc) SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s).
commit 2f62720d71a42f20f0b00a77881543e36adcb8d3 Author: Sebastian Dröge <sebastian@centricular.com> Date: Fri Dec 9 17:36:47 2016 +0200 xmptag: Don't leak the namespace string if there are multiple https://bugzilla.gnome.org/show_bug.cgi?id=775887