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)