mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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 == AVERROR_OPTION_NOT_FOUND)
|
||||
av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
|
||||
av_free(value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user