avfilter/vf_unsharp: use av_freep() avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 12:53:53 +0000 (13:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 13:18:30 +0000 (14:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_unsharp.c

index 37053d9..2b8d046 100644 (file)
@@ -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)