shithub: opus

Download patch

ref: bcdddb9ccb9b32317359a30ebd075db49edb32d3
parent: 617fcd2cf0352574cace66392001228bb96769a2
author: Jean-Marc Valin <[email protected]>
date: Thu Mar 17 02:51:58 EDT 2011

Fixes leak in test_opus

--- a/src/test_opus.c
+++ b/src/test_opus.c
@@ -38,7 +38,7 @@
 #include "SKP_debug.h"
 
 
-#define MAX_PACKET 1024
+#define MAX_PACKET 1500
 
 void print_usage( char* argv[] ) 
 {
@@ -351,6 +351,9 @@
    SKP_TimerSave("opus_timing.txt");
    opus_encoder_destroy(enc);
    opus_decoder_destroy(dec);
+   free(data[0]);
+   if (use_inbandfec)
+	   free(data[1]);
    fclose(fin);
    fclose(fout);
    free(in);