]> git.sesse.net Git - ffmpeg/commitdiff
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 0e9bd2b5f90d502d10bb6795a6dd6975e86cb5dd..5a1c79ec8ea37b87c6f2b9cc22e105932f82d02b 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;