From 498396f80c2e70e291e2f6cae716aebc883bb761 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 13 Dec 2014 13:53:53 +0100 Subject: [PATCH] avfilter/vf_unsharp: use av_freep() avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavfilter/vf_unsharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index 37053d98e0..2b8d0460ef 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -215,7 +215,7 @@ static void free_filter_param(UnsharpFilterParam *fp) int z; for (z = 0; z < 2 * fp->steps_y; z++) - av_free(fp->sc[z]); + av_freep(&fp->sc[z]); } static av_cold void uninit(AVFilterContext *ctx)