GNOME Bugzilla – Bug 787058
libpng : Fix Memory leak in gstpngenc.c
Last modified: 2017-09-20 08:17:16 UTC
Created attachment 358817 [details] [review] Patch file is attached. Hi, File : gst-plugins-good/ext/libpng/gstpngenc.c Function gst_pngenc_handle_frame Line : 308 gst_pngenc_handle_frame There is memory leak in gstpngenc.c file as memory is allocated just before gst_video_frame_map. Solution : g_free (row_pointers); ++patch is attched for possible solution. Kindly review the patch and provide your feedback.
Comment on attachment 358817 [details] [review] Patch file is attached. Just allocate the row pointers after successfully mapping the video frame
Created attachment 360102 [details] [review] Updated patch is attached.
Are you guys working on the same static analyzer output but not co-ordinating by any chance? commit c53bee067d9d7ed0f8ac010628d13f2a2081fc9b Author: Ponnam Srinivas <p.srinivas@samsung.com> Date: Wed Sep 20 09:37:59 2017 +0530 pngenc: fix memory leak in error code path Don't leak row_pointers if frame can't be mapped. https://bugzilla.gnome.org/show_bug.cgi?id=787885 *** This bug has been marked as a duplicate of bug 787885 ***