[FFmpeg-cvslog] avutil/sha512-test: fix memleak

James Almer git at videolan.org
Fri May 13 21:56:56 CEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri May 13 16:53:44 2016 -0300| [d8ef8b960adde5263d71e6463aabdc2a4db642a4] | committer: James Almer

avutil/sha512-test: fix memleak

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8ef8b960adde5263d71e6463aabdc2a4db642a4
---

 libavutil/sha512-test.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/sha512-test.c b/libavutil/sha512-test.c
index 4b7efdc..32ff508 100644
--- a/libavutil/sha512-test.c
+++ b/libavutil/sha512-test.c
@@ -23,6 +23,7 @@
 
 #include <stdio.h>
 
+#include "mem.h"
 #include "sha512.h"
 
 int main(void)
@@ -83,6 +84,7 @@ int main(void)
             break;
         }
     }
+    av_free(ctx);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list