summaryrefslogtreecommitdiff
path: root/libavformat/mmst.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-20 16:54:25 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-20 16:54:25 +0100
commit8db0c2ffe60d652d4f2942429281a34bc96bbb59 (patch)
treed7539e6bcf471b5ddce577b4b579856931dbb310 /libavformat/mmst.c
parentbcd4447173c83bfeae69aa53e2e3a25c449d2a54 (diff)
avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mmst.c')
-rw-r--r--libavformat/mmst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index c851187daf..653b403bc4 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -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;
}