diff options
author | Etienne Buira <etienne.buira.lists@free.fr> | 2011-06-08 02:20:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-09 02:43:55 +0200 |
commit | c8d0d8bc767309d5e8d9ee64addc11117190338e (patch) | |
tree | d29d2f85527334d32fa34f57b92e0c9131c5c043 /libavformat | |
parent | c1ad93c08ce0b6ea2f4505267fe3aa7584701dca (diff) | |
download | ffmpeg-c8d0d8bc767309d5e8d9ee64addc11117190338e.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')
-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; } |