[FFmpeg-cvslog] av_opt_set_from_string: fix memleak
Michael Niedermayer
git at videolan.org
Thu Oct 11 04:47:29 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 04:42:52 2012 +0200| [492b8ec4c5f54fee40d00a23f2f22d5249e8b3da] | committer: Michael Niedermayer
av_opt_set_from_string: fix memleak
Fixes CID733801
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=492b8ec4c5f54fee40d00a23f2f22d5249e8b3da
---
libavutil/opt.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the ffmpeg-cvslog
mailing list