From: Thiago Santos Date: Sun, 9 Oct 2011 14:18:18 +0000 (-0300) Subject: qtmux: Fix memory leak on atoms recovery function X-Git-Tag: RELEASE-0.11.1~7^2~256 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca417fd3768cd537cab979212c5e3d33fe63070f;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: Fix memory leak on atoms recovery function Remember to free the ftyp data after writing it to a file. Fixes #660969 --- diff --git a/gst/isomp4/atomsrecovery.c b/gst/isomp4/atomsrecovery.c index 1f5a287..1190ec1 100644 --- a/gst/isomp4/atomsrecovery.c +++ b/gst/isomp4/atomsrecovery.c @@ -117,8 +117,10 @@ atoms_recov_write_ftyp_info (FILE * f, AtomFTYP * ftyp, GstBuffer * prefix) return FALSE; } if (fwrite (data, 1, offset, f) != offset) { + g_free (data); return FALSE; } + g_free (data); return TRUE; }