diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 06:42:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 06:42:52 +0400 |
commit | 492b8ec4c5f54fee40d00a23f2f22d5249e8b3da (patch) | |
tree | 3f7317a390533734e055b717515acce0ade86fdb /libavutil/opt.c | |
parent | 7df9f595c9122f7c8aad39e0ad7d5b7bb1181e7e (diff) |
av_opt_set_from_string: fix memleak
Fixes CID733801
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index f2ce9789f7..ed475ecc92 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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; } |