summaryrefslogtreecommitdiff
path: root/libavfilter/vf_unsharp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-13 13:53:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-13 14:18:30 +0100
commit498396f80c2e70e291e2f6cae716aebc883bb761 (patch)
tree72c8fbc0ab577bb35087f08e3b8553fc3f323154 /libavfilter/vf_unsharp.c
parent792a5004a14ebcb54791a16b4d9be5354585c7e6 (diff)
avfilter/vf_unsharp: use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_unsharp.c')
-rw-r--r--libavfilter/vf_unsharp.c2
1 files changed, 1 insertions, 1 deletions
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)