]> git.sesse.net Git - ffmpeg/commitdiff
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 37053d98e064fac15a857090c05a730e482c2659..2b8d0460ef0d3e328750c548d7975a13c3e647c3 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)