From f92d2f329254f4a1b7a8a50faff7f7292023291a Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 13 May 2016 16:53:08 -0300 Subject: avutil/aes-test: fix memleak Signed-off-by: James Almer --- libavutil/aes-test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavutil') diff --git a/libavutil/aes-test.c b/libavutil/aes-test.c index 339aa5a6e4..137df3060e 100644 --- a/libavutil/aes-test.c +++ b/libavutil/aes-test.c @@ -22,6 +22,7 @@ #include "aes.h" #include "lfg.h" #include "log.h" +#include "mem.h" int main(int argc, char **argv) { @@ -64,6 +65,7 @@ int main(int argc, char **argv) } } } + av_free(b); if (argc > 1 && !strcmp(argv[1], "-t")) { struct AVAES *ae, *ad; @@ -108,6 +110,8 @@ int main(int argc, char **argv) } } } + av_free(ae); + av_free(ad); } return err; } -- cgit v1.2.3