summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 04:42:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 04:42:52 +0200
commit492b8ec4c5f54fee40d00a23f2f22d5249e8b3da (patch)
tree3f7317a390533734e055b717515acce0ade86fdb /libavutil
parent7df9f595c9122f7c8aad39e0ad7d5b7bb1181e7e (diff)
downloadffmpeg-streaming-492b8ec4c5f54fee40d00a23f2f22d5249e8b3da.zip
ffmpeg-streaming-492b8ec4c5f54fee40d00a23f2f22d5249e8b3da.tar.gz
av_opt_set_from_string: fix memleak
Fixes CID733801 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index f2ce978..ed475ec 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -869,6 +869,7 @@ int av_opt_set_from_string(void *ctx, const char *opts,
if ((ret = av_opt_set(ctx, key, value, 0)) < 0) {
if (ret == AVERROR_OPTION_NOT_FOUND)
av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
+ av_free(value);
return ret;
}
OpenPOWER on IntegriCloud