From 06d003625beea37c84956a037e2c59d6de1da85d Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sat, 30 Mar 2002 14:02:53 +0000 Subject: [PATCH] Fix a small (4 byte per encode) memory leak. Monty - there may be a better/cleaner way to do this, but it wasn't obvious to me. (the memory is allocated in vorbisenc.c, this frees it in time0.c) svn path=/trunk/vorbis/; revision=3203 --- lib/time0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/time0.c b/lib/time0.c index 3d3f1d8..fa93326 100644 --- a/lib/time0.c +++ b/lib/time0.c @@ -11,7 +11,7 @@ ******************************************************************** function: time backend 0 (dummy) - last mod: $Id: time0.c,v 1.11 2001/12/20 01:00:30 segher Exp $ + last mod: $Id: time0.c,v 1.12 2002/03/30 14:02:53 msmith Exp $ ********************************************************************/ @@ -36,6 +36,7 @@ static vorbis_look_time *time0_look (vorbis_dsp_state *vd,vorbis_info_mode *mi, return ""; } static void time0_free_info(vorbis_info_time *i){ + free(i); /* Dummy time mapping parameter */ } static void time0_free_look(vorbis_look_time *i){ } -- 2.7.4