mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-19 07:20:02 +02:00
Don't dereference NULL, ensure HashChain fully initialized
Found by clang's static analyzer, they look validly uninitialized to me. Change-Id: I650250f516cdf6081b35cdfe92288c20a3036ac8
This commit is contained in:
@ -959,7 +959,9 @@ static VP8LEncoder* VP8LEncoderNew(const WebPConfig* const config,
|
||||
}
|
||||
|
||||
static void VP8LEncoderDelete(VP8LEncoder* enc) {
|
||||
free(enc->argb_);
|
||||
if (enc != NULL) {
|
||||
free(enc->argb_);
|
||||
}
|
||||
free(enc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user