mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_unsharp: use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
792a5004a1
commit
498396f80c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue