[FFmpeg-cvslog] avutil/hmac: use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Sat Dec 27 15:59:21 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 27 15:50:01 2014 +0100| [05e74ac2f3f3390952893b983939f026f7ab1cec] | committer: Michael Niedermayer

avutil/hmac: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/hmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hmac.c b/libavutil/hmac.c
index 02bdc18..300436c 100644
--- a/libavutil/hmac.c
+++ b/libavutil/hmac.c
@@ -127,7 +127,7 @@ void av_hmac_free(AVHMAC *c)
 {
     if (!c)
         return;
-    av_free(c->hash);
+    av_freep(&c->hash);
     av_free(c);
 }
 



More information about the ffmpeg-cvslog mailing list