mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bcd4447173
commit
8db0c2ffe6
@ -477,8 +477,8 @@ static int mms_close(URLContext *h)
|
||||
}
|
||||
|
||||
/* free all separately allocated pointers in mms */
|
||||
av_free(mms->streams);
|
||||
av_free(mms->asf_header);
|
||||
av_freep(&mms->streams);
|
||||
av_freep(&mms->asf_header);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user