From db6ee54353cf7846482884f07084a34f3c093686 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 28 Jun 2011 12:10:24 -0700 Subject: [PATCH] vpxenc: free resources Free buffers allocated for y4m input and webm cue list. Change-Id: I02051baae3b45f692cf5c7f520ea9a2d80c7b470 --- vpxenc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpxenc.c b/vpxenc.c index d311a14..26afcd6 100644 --- a/vpxenc.c +++ b/vpxenc.c @@ -2040,10 +2040,14 @@ int main(int argc, const char **argv_) vpx_codec_destroy(&encoder); fclose(infile); + if (file_type == FILE_TYPE_Y4M) + y4m_input_close(&y4m); if(write_webm) { write_webm_file_footer(&ebml, hash); + free(ebml.cue_list); + ebml.cue_list = NULL; } else { -- 2.7.4