From aeba55604a52690921ea3e94543d017906c6aa21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Thu, 24 Mar 2016 18:20:39 +0100 Subject: [PATCH] stb_vorbis: Fix memory leak in start_decoder(). --- stb_vorbis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 4cd02de..6baf9ec 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -3810,7 +3810,6 @@ static int start_decoder(vorb *f) } } } - setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values); c->lookup_type = 2; } else @@ -3826,11 +3825,11 @@ static int start_decoder(vorb *f) if (c->sequence_p) last = val; } - setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values); } #ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK skip:; #endif + setup_temp_free(f, mults, sizeof(mults[0])*c->lookup_values); CHECK(f); }