From f89aa6751c0b4c2ff391c34f585d9ea920858adb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Jun 2012 14:40:05 +0200 Subject: [PATCH] lavf: use av_freep() in ffurl_close() Signed-off-by: Michael Niedermayer --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 0e9bd2b5f9..5a1c79ec8e 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -329,7 +329,7 @@ int ffurl_close(URLContext *h) if (h->prot->priv_data_size) { if (h->prot->priv_data_class) av_opt_free(h->priv_data); - av_free(h->priv_data); + av_freep(&h->priv_data); } av_free(h); return ret;