Module: libav Branch: master Commit: a71bcd1a7f66e210971c44452dc4cdae7bdbd98a
Author: Etienne Buira <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Wed Jun 8 02:20:53 2011 +0200 crypto: Use av_freep instead of av_free This fixes a potential double free. Signed-off-by: Martin Storsjö <[email protected]> --- 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; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
