aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-11 00:00:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-11 00:03:23 +0100
commit22e4988673df322b98c1d38782d4d8aa98d3a518 (patch)
tree5682b6a8cf3f9de86440fd9ff0c436e5b82184dc
parent0a60f83075883f5d73c7f7f20d00ad31897178c2 (diff)
downloadffmpeg-22e4988673df322b98c1d38782d4d8aa98d3a518.tar.gz
opt: fix memleak on error of range_array
Fixes CID747739 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index d388b7d46e..48078e3274 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -1279,6 +1279,7 @@ int av_opt_query_ranges_default(AVOptionRanges **ranges_arg, void *obj, const ch
fail:
av_free(ranges);
av_free(range);
+ av_free(range_array);
return ret;
}