summaryrefslogtreecommitdiff
path: root/libavcodec/ffwavesynth.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-29 14:06:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-29 14:06:26 +0100
commit748ad112e2c07a517297b9592410c8fd627bc49a (patch)
tree090f6ed9674dee8a3bc7cbf0815ca611f8c47c17 /libavcodec/ffwavesynth.c
parentac08c5c0adcb7f2f9b5ea3eb473d1c2b9659aab2 (diff)
downloadffmpeg-748ad112e2c07a517297b9592410c8fd627bc49a.tar.gz
avcodec/ffwavesynth: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffwavesynth.c')
-rw-r--r--libavcodec/ffwavesynth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ffwavesynth.c b/libavcodec/ffwavesynth.c
index 4a5031a8ca..e835934fa0 100644
--- a/libavcodec/ffwavesynth.c
+++ b/libavcodec/ffwavesynth.c
@@ -345,8 +345,8 @@ static av_cold int wavesynth_init(AVCodecContext *avc)
return 0;
fail:
- av_free(ws->inter);
- av_free(ws->sin);
+ av_freep(&ws->inter);
+ av_freep(&ws->sin);
return r;
}
@@ -463,8 +463,8 @@ static av_cold int wavesynth_close(AVCodecContext *avc)
{
struct wavesynth_context *ws = avc->priv_data;
- av_free(ws->sin);
- av_free(ws->inter);
+ av_freep(&ws->sin);
+ av_freep(&ws->inter);
return 0;
}