[FFmpeg-devel] [PATCH 1/4] vf_fade: free type when overwriting it.
Nicolas George
nicolas.george at normalesup.org
Sat Mar 3 13:45:39 CET 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/vf_fade.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
This patch series should make FATE-valgrind slightly more happy.
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index 7fe0dae..79c8994 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -94,6 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
}
if (expr = av_strtok(args1, ":", &bufptr)) {
+ av_free(fade->type);
if (!(fade->type = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;
--
1.7.9.1
More information about the ffmpeg-devel
mailing list