aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorEtienne Buira <etienne.buira.lists@free.fr>2011-06-08 02:20:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-09 02:43:55 +0200
commitc8d0d8bc767309d5e8d9ee64addc11117190338e (patch)
treed29d2f85527334d32fa34f57b92e0c9131c5c043 /libavformat
parentc1ad93c08ce0b6ea2f4505267fe3aa7584701dca (diff)
downloadffmpeg-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.c4
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;
}