Browse Source

av_opt_set_from_string: fix memleak

Fixes CID733801
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
492b8ec4c5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/opt.c

+ 1
- 0
libavutil/opt.c View File

@@ -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…
Cancel
Save