Merge commit 'ded4a6543dfb5a2f1d9f7fb8d3ab27a1872c22b3'
authorClément Bœsch <clement@stupeflix.com>
Fri, 24 Jun 2016 09:16:52 +0000 (11:16 +0200)
committerClément Bœsch <clement@stupeflix.com>
Fri, 24 Jun 2016 09:16:52 +0000 (11:16 +0200)
* commit 'ded4a6543dfb5a2f1d9f7fb8d3ab27a1872c22b3':
  xtea-test: Use struct allocation functions from the API

Merged-by: Clément Bœsch <clement@stupeflix.com>
1  2 
libavutil/tests/xtea.c

@@@ -109,13 -112,13 +112,14 @@@ int main(void
  
          /* decrypt into pl */
          memcpy(iv, "HALLO123", 8);
-         test_xtea(&ctx, pl, ct, src, 4, iv, 1, "CBC decryption", av_xtea_crypt);
+         test_xtea(ctx, pl, ct, src, 4, iv, 1, "CBC decryption", av_xtea_crypt);
  
          memcpy(iv, "HALLO123", 8);
-         test_xtea(&ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption", av_xtea_crypt);
+         test_xtea(ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption", av_xtea_crypt);
      }
 +
      printf("Test encryption/decryption success.\n");
+     av_free(ctx);
  
      return 0;
  }