From ca417fd3768cd537cab979212c5e3d33fe63070f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sun, 9 Oct 2011 11:18:18 -0300 Subject: [PATCH] qtmux: Fix memory leak on atoms recovery function Remember to free the ftyp data after writing it to a file. Fixes #660969 --- gst/isomp4/atomsrecovery.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.7.4