aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-05-13 16:53:08 -0300
committerJames Almer <jamrial@gmail.com>2016-05-13 16:53:08 -0300
commitf92d2f329254f4a1b7a8a50faff7f7292023291a (patch)
treea574c8b95b173bcbd098c782da3d6869d5a28ed4
parentf6265a5cbcfb94c34e233a47930ec50495b176de (diff)
downloadffmpeg-f92d2f329254f4a1b7a8a50faff7f7292023291a.tar.gz
avutil/aes-test: fix memleak
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavutil/aes-test.c4
1 files changed, 4 insertions, 0 deletions
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;
}