Commit 492b8ec4 authored by Michael Niedermayer's avatar Michael Niedermayer

av_opt_set_from_string: fix memleak

Fixes CID733801
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7df9f595
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment