Commit f92d2f32 authored by James Almer's avatar James Almer

avutil/aes-test: fix memleak

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent f6265a5c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment