Browse Source

opt: fix memleak on error of range_array

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

+ 1
- 0
libavutil/opt.c View File

@@ -1279,6 +1279,7 @@ int av_opt_query_ranges_default(AVOptionRanges **ranges_arg, void *obj, const ch
fail:
av_free(ranges);
av_free(range);
av_free(range_array);
return ret;
}



Loading…
Cancel
Save