aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 12:52:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 15:07:50 +0100
commit59ca6e2586949c252fa4b9e4562e9d8c5bf6b38c (patch)
tree5f7df7f1325a486dd7d143305ea142eb883d2f00 /libavformat
parent6e70e4aca50696040cc9256ec96e5c31d9641432 (diff)
downloadffmpeg-59ca6e2586949c252fa4b9e4562e9d8c5bf6b38c.tar.gz
avformat/hlsproto: Use av_freep, to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index a569e9224e..788562aa81 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -80,7 +80,7 @@ static void free_segment_list(HLSContext *s)
{
int i;
for (i = 0; i < s->n_segments; i++)
- av_free(s->segments[i]);
+ av_freep(&s->segments[i]);
av_freep(&s->segments);
s->n_segments = 0;
}
@@ -89,7 +89,7 @@ static void free_variant_list(HLSContext *s)
{
int i;
for (i = 0; i < s->n_variants; i++)
- av_free(s->variants[i]);
+ av_freep(&s->variants[i]);
av_freep(&s->variants);
s->n_variants = 0;
}