av_opt_set_from_string: fix memleak
Fixes CID733801 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7df9f595c9
commit
492b8ec4c5
@ -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 = av_opt_set(ctx, key, value, 0)) < 0) {
|
||||||
if (ret == AVERROR_OPTION_NOT_FOUND)
|
if (ret == AVERROR_OPTION_NOT_FOUND)
|
||||||
av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
|
av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
|
||||||
|
av_free(value);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user