[FFmpeg-cvslog] crypto: Use av_freep instead of av_free

Martin Storsjö git at videolan.org
Mon Apr 25 02:32:49 CEST 2011


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Apr 24 20:10:37 2011 +0300| [ac9cf2e5c48aa1edb2c7ba8e7edfa55c9fde609b] | committer: Martin Storsjö

crypto: Use av_freep instead of av_free

Using av_freep is generally good practice.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/crypto.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index ea6012a..fecc2c9 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -153,9 +153,9 @@ static int crypto_close(URLContext *h)
     CryptoContext *c = h->priv_data;
     if (c->hd)
         ffurl_close(c->hd);
-    av_free(c->aes);
-    av_free(c->key);
-    av_free(c->iv);
+    av_freep(&c->aes);
+    av_freep(&c->key);
+    av_freep(&c->iv);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list