Don't call spdylay_zlib_inflate_free when inflateInit failed.
This commit is contained in:
parent
b8d485d3a2
commit
f21c0ee3d9
|
@ -279,7 +279,6 @@ int spdylay_zlib_inflate_hd_init(spdylay_zlib *inflater, uint16_t version)
|
|||
return SPDYLAY_ERR_UNSUPPORTED_VERSION;
|
||||
}
|
||||
if(Z_OK != inflateInit(&inflater->zst)) {
|
||||
spdylay_zlib_inflate_free(inflater);
|
||||
return SPDYLAY_ERR_ZLIB;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue