lavf: use av_freep() in ffurl_close()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 12:40:05 +0000 (14:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 12:40:05 +0000 (14:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avio.c

index 0e9bd2b..5a1c79e 100644 (file)
@@ -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;