diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 01:08:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 01:08:08 +0200 |
commit | f374e9989be2478d276ed9e1c330a5726a26509c (patch) | |
tree | 005f51ba979293a3b81c8a4b93dbea5258aee1b1 | |
parent | 0f46825d9833b70cec671d825b0065850c485196 (diff) | |
download | ffmpeg-f374e9989be2478d276ed9e1c330a5726a26509c.tar.gz |
vf_fade: fix memleaks of args
Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_fade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c index 6d456960ec..f1e7c6e958 100644 --- a/libavfilter/vf_fade.c +++ b/libavfilter/vf_fade.c @@ -100,14 +100,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args) if ((ret = av_opt_set(fade, "start_frame", expr, 0)) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid value '%s' for start_frame option\n", expr); - return ret; + goto end; } } if (expr = av_strtok(NULL, ":", &bufptr)) { if ((ret = av_opt_set(fade, "nb_frames", expr, 0)) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid value '%s' for nb_frames option\n", expr); - return ret; + goto end; } } |