Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-08-09 15:22:44 +0400
committerGregory Maxwell <greg@xiph.org>2012-08-09 15:22:44 +0400
commit98eed74bf59be7192e7e87bc89de06bf9cbe34a2 (patch)
tree5419078663a74dea2829df98a9d17b9aba5cfc9e
parent4ee682f52ad704fbe8b8350036e9744da22d3a12 (diff)
Avoid an inconsequential memory leak in tests/test_opus_decode.c.
Match up the exit behavior when the no-fuzz enviroment variable is set.
-rw-r--r--tests/test_opus_decode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index ea970927..2c6a872a 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -198,8 +198,15 @@ int test_decoder_code0(int no_fuzz)
if(no_fuzz)
{
fprintf(stdout," Skipping many tests which fuzz the decoder as requested.\n");
+ free(decbak);
for(t=0;t<5*2;t++)opus_decoder_destroy(dec[t]);
printf(" Decoders stopped.\n");
+
+ err=0;
+ for(i=0;i<8*2;i++)err|=outbuf_int[i]!=32749;
+ for(i=MAX_FRAME_SAMP*2;i<(MAX_FRAME_SAMP+8)*2;i++)err|=outbuf[i]!=32749;
+ if(err)test_failed();
+
free(outbuf_int);
free(packet);
return 0;