aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/jpeglsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 17:45:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 17:45:36 +0200
commitb96d1859d523f4e2cee985e9fc4971ef6ed83422 (patch)
treed53c9cc58519e9c79b8fe1f2fe2a415855388d2d /libavcodec/jpeglsenc.c
parent34bbab432ca049ec0a5b9accf6b965b1b1d63b2b (diff)
downloadffmpeg-b96d1859d523f4e2cee985e9fc4971ef6ed83422.tar.gz
jpeglsenc: favor av_freep() for saftey over av_free() when a variable is still accessible afterwards
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeglsenc.c')
-rw-r--r--libavcodec/jpeglsenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c
index 17fb8180a7..e51e47aafd 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -345,8 +345,8 @@ static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt,
}
}
- av_free(zero);
- av_free(state);
+ av_freep(&zero);
+ av_freep(&state);
// the specification says that after doing 0xff escaping unused bits in the
// last byte must be set to 0, so just append 7 "optional" zero-bits to