[FFmpeg-cvslog] avfilter/vf_kerndeint: use av_freep(), avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Sat Dec 13 14:20:32 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 13 13:54:16 2014 +0100| [43fb40c3c321fdbfa841d6537841467749b55233] | committer: Michael Niedermayer

avfilter/vf_kerndeint: use av_freep(), avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43fb40c3c321fdbfa841d6537841467749b55233
---

 libavfilter/vf_kerndeint.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c
index 5130208..ccb8fbd 100644
--- a/libavfilter/vf_kerndeint.c
+++ b/libavfilter/vf_kerndeint.c
@@ -63,7 +63,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     KerndeintContext *kerndeint = ctx->priv;
 
-    av_free(kerndeint->tmp_data[0]);
+    av_freep(&kerndeint->tmp_data[0]);
 }
 
 static int query_formats(AVFilterContext *ctx)



More information about the ffmpeg-cvslog mailing list