changeset 6281:f2ad554b2464 libavformat

movenc: Free the buffer returned by url_close_dyn_buffer, regardless of the size This fixes a leak introduced in rev 23942, since we write padding to the buffer unconditionally.
author mstorsjo
date Tue, 20 Jul 2010 05:23:28 +0000
parents eec2da728944
children 0e98c3e14c9a
files movenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Mon Jul 19 18:43:20 2010 +0000
+++ b/movenc.c	Tue Jul 20 05:23:28 2010 +0000
@@ -1630,8 +1630,8 @@
         put_be32(pb, size+8);
         put_tag(pb, "udta");
         put_buffer(pb, buf, size);
-        av_free(buf);
     }
+    av_free(buf);
 
     return 0;
 }