Don't call spdylay_zlib_inflate_free when inflateInit failed.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-04-24 22:40:59 +09:00
parent b8d485d3a2
commit f21c0ee3d9
1 changed files with 0 additions and 1 deletions

View File

@ -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;