summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-19 03:03:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-19 03:03:04 +0200
commit993a2487de7d53d5787d2267ddadd588e24e89ca (patch)
treec92ec2db4ea0f473e301235bdbf1b4ccaa71de1d /libavcodec
parent52bf4ad6746a38f3e37b9ca8d579be7c448159cc (diff)
avcodec/nellymoserenc: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/nellymoserenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 4f511c292b..9bbdd52426 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -138,8 +138,8 @@ static av_cold int encode_end(AVCodecContext *avctx)
ff_mdct_end(&s->mdct_ctx);
if (s->avctx->trellis) {
- av_free(s->opt);
- av_free(s->path);
+ av_freep(&s->opt);
+ av_freep(&s->path);
}
ff_af_queue_close(&s->afq);