diff options
author | Etienne Buira <etienne.buira.lists@free.fr> | 2011-06-08 02:20:53 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-06-08 23:41:53 +0300 |
commit | a71bcd1a7f66e210971c44452dc4cdae7bdbd98a (patch) | |
tree | d3bd9cd9ba4c26e8fe25d6deeedc1e1a007bd855 /libavformat/crypto.c | |
parent | dbaba52ed25f79c8be0ce1a478b229bf868f8c11 (diff) | |
download | ffmpeg-a71bcd1a7f66e210971c44452dc4cdae7bdbd98a.tar.gz |
crypto: Use av_freep instead of av_free
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r-- | libavformat/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c index 789a4d1e76..5e7ee1eba3 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; } |