Commit 8db0c2ff authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mmst: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bcd44471
...@@ -477,8 +477,8 @@ static int mms_close(URLContext *h) ...@@ -477,8 +477,8 @@ static int mms_close(URLContext *h)
} }
/* free all separately allocated pointers in mms */ /* free all separately allocated pointers in mms */
av_free(mms->streams); av_freep(&mms->streams);
av_free(mms->asf_header); av_freep(&mms->asf_header);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment