GNOME Bugzilla – Bug 787398
mpeg2dec :Fix Memory leak issue in gstmpeg2dec.c
Last modified: 2017-09-16 08:13:19 UTC
Created attachment 359325 [details] [review] Patch file is attached. Hi , There is memory leak in gstmpeg2dec.c Below is observation Function gst_mpeg2dec_crop_buffer Line : 508 There is memory leak in gstmpeg2dec.c file as in case of fail "gst_video_frame_copy" allocated memory should be unref. Solution : gst_video_frame_unmap (&output_frame); ++patch is attched for possible solution. Kindly review the patch and provide your feedback.
commit c7594c4acb4f13957d82fd3c0e75aa14fab5d1f4 (HEAD -> master) Author: Satya Prakash Gupta <sp.gupta@samsung.com> Date: Thu Sep 7 13:27:26 2017 +0530 mpeg2dec: Unmap output video frame if copying to it fails https://bugzilla.gnome.org/show_bug.cgi?id=787398
Please try to provide a more informative commit message in the future :)