summaryrefslogtreecommitdiff
path: root/libavcodec/tiffenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-18 11:33:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-18 11:33:58 +0100
commitbb5e1482992ddcbdae5f4aee8e62fafbf37a239f (patch)
tree8089d8aa97f540f251a72f8dc0455ce32654154b /libavcodec/tiffenc.c
parent98fbf8ef6737befeec5bd634164b9b0ea17f9cfe (diff)
libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiffenc.c')
-rw-r--r--libavcodec/tiffenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 38ff780da3..5f3324bea2 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
}
if (s->compr == TIFF_LZW)
- av_free(s->lzws);
+ av_freep(&s->lzws);
}
s->num_entries = 0;