From 492b8ec4c5f54fee40d00a23f2f22d5249e8b3da Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 04:42:52 +0200 Subject: av_opt_set_from_string: fix memleak Fixes CID733801 Signed-off-by: Michael Niedermayer --- libavutil/opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/opt.c b/libavutil/opt.c index f2ce9789f7..ed475ecc92 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; } -- cgit v1.2.3