Commit b96d1859 authored by Michael Niedermayer's avatar Michael Niedermayer

jpeglsenc: favor av_freep() for saftey over av_free() when a variable is still...

jpeglsenc: favor av_freep() for saftey over av_free() when a variable is still accessible afterwards
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 34bbab43
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment