lavf: use av_freep() in ffurl_close()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-06-01 14:40:05 +02:00
parent 2dbb8cc6a3
commit f89aa6751c

View 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;