You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
av_opt_set_from_string: fix memleak
Fixes CID733801 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user