[FFmpeg-cvslog] crypto: Use av_freep instead of av_free
Etienne Buira
git at videolan.org
Thu Jun 9 05:16:06 CEST 2011
ffmpeg | branch: master | Etienne Buira <etienne.buira.lists at free.fr> | Wed Jun 8 02:20:53 2011 +0200| [a71bcd1a7f66e210971c44452dc4cdae7bdbd98a] | committer: Martin Storsjö
crypto: Use av_freep instead of av_free
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a71bcd1a7f66e210971c44452dc4cdae7bdbd98a
---
libavformat/crypto.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index 789a4d1..5e7ee1e 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return 0;
err:
- av_free(c->key);
- av_free(c->iv);
+ av_freep(&c->key);
+ av_freep(&c->iv);
return ret;
}
More information about the ffmpeg-cvslog
mailing list