[FFmpeg-cvslog] overlay: do not leak x/y expressions.
Nicolas George
git at videolan.org
Sun Jan 15 10:23:40 CET 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jan 12 19:18:13 2012 +0100| [bbf372e1457a1cde5de8df8bdf930560bc9c9631] | committer: Nicolas George
overlay: do not leak x/y expressions.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbf372e1457a1cde5de8df8bdf930560bc9c9631
---
libavfilter/vf_overlay.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 062783e..38e8644 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -115,12 +115,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
av_opt_set_defaults(over);
if (expr = av_strtok(args1, ":", &bufptr)) {
+ av_free(over->x_expr);
if (!(over->x_expr = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;
}
}
if (expr = av_strtok(NULL, ":", &bufptr)) {
+ av_free(over->y_expr);
if (!(over->y_expr = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;
More information about the ffmpeg-cvslog
mailing list