mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue