GNOME Bugzilla – Bug 788481
libav : Fix for memory leak in function gst_ffmpegdata_open if successive memory allocations fail
Last modified: 2018-01-13 12:07:26 UTC
Created attachment 360848 [details] [review] patch to fix the memory leak. Hi In function gst_ffmpegdata_open info = g_new0 (GstProtocolInfo, 1); not freed in case of return -EINVAL; and return -ENOMEM; Solution : g_free(info); Attached the patch for the same. Please review and share the feedback.
Thanks for the patch. Next time please make sure to run gst-indent on the .c file you have modified (this is done automatically on git commit if you are working on a git checkout and have GNU indent installed). commit a323802c5b893f1683c702af30a82598b4ecd80b (HEAD -> master) Author: Ashish Kumar <kr.ashish@samsung.com> Date: Tue Oct 3 13:57:24 2017 +0530 avprotocol: fix leak in error code paths https://bugzilla.gnome.org/show_bug.cgi?id=788481