GNOME Bugzilla – Bug 762172
vaapipluginbase: Fix structure memory leak
Last modified: 2016-02-17 08:47:56 UTC
Fix for below memory leak ==20730== at 0x402C17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==20730== by 0x4371BE2: g_malloc (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0) ==20730== by 0x4388281: g_slice_alloc (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0) ==20730== by 0x421ED31: gst_structure_new_id_empty_with_size (gststructure.c:145) ==20730== by 0x42209F7: gst_structure_copy (gststructure.c:345) ==20730== by 0x41BFD73: gst_buffer_pool_get_config (gstbufferpool.c:717) ==20730== by 0x7CEAABF: gst_vaapi_plugin_base_set_pool_config (gstvaapipluginbase.c:574) ==20730== by 0x7CEAABF: gst_vaapi_plugin_base_decide_allocation (gstvaapipluginbase.c:703) ==20730== by 0x7CE7921: gst_vaapidecode_decide_allocation (gstvaapidecode.c:640) ==20730== by 0x413C608: gst_video_decoder_negotiate_pool (gstvideodecoder.c:3714) ==20730== by 0x4146F97: gst_video_decoder_negotiate (gstvideodecoder.c:3889) ==20730== by 0x7CE6ECA: gst_vaapidecode_negotiate (gstvaapidecode.c:439) ==20730== by 0x7CE7A1E: gst_vaapidecode_push_all_decoded_frames (gstvaapidecode.c:471)
Created attachment 321464 [details] [review] fix structure memory leak
commit 733c9b6fba036ad359de8ed50e3549049e3007b5 Author: Vineeth TM <vineeth.tm@samsung.com> Date: Wed Feb 17 17:15:28 2016 +0900 vaapipluginbase: Fix structure memory leak config structure is not being freed in all cases https://bugzilla.gnome.org/show_bug.cgi?id=762172