possible null deref
parent
e29a140290
commit
0dd1706c14
|
@ -1055,7 +1055,7 @@ gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width,
|
|||
scale_pass_res = _gdScalePass(tmp_im, src_height, dst, new_height, new_width, VERTICAL);
|
||||
if (scale_pass_res != 1) {
|
||||
gdImageDestroy(dst);
|
||||
if (src != tmp_im && tmp_im != NULL) {
|
||||
if (tmp != NULL && src != tmp_im) {
|
||||
gdImageDestroy(tmp_im);
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue