[FFmpeg-cvslog] avutil/aes-test: fix memleak
James Almer
git at videolan.org
Fri May 13 21:56:55 CEST 2016
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri May 13 16:53:08 2016 -0300| [f92d2f329254f4a1b7a8a50faff7f7292023291a] | committer: James Almer
avutil/aes-test: fix memleak
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f92d2f329254f4a1b7a8a50faff7f7292023291a
---
libavutil/aes-test.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavutil/aes-test.c b/libavutil/aes-test.c
index 339aa5a..137df30 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;
}
More information about the ffmpeg-cvslog
mailing list