1
1

strm->next_out doesn't *stay* == out, only free out

Этот коммит содержится в:
Sara Golemon 2005-02-28 17:02:39 +00:00
родитель ef7496b29a
Коммит 99e5547442

Просмотреть файл

@ -166,7 +166,7 @@ static int libssh2_comp_method_zlib_comp(LIBSSH2_SESSION *session, int compress,
} }
if (status != Z_OK) { if (status != Z_OK) {
libssh2_error(session, LIBSSH2_ERROR_ZLIB, "compress/decompression failure", 0); libssh2_error(session, LIBSSH2_ERROR_ZLIB, "compress/decompression failure", 0);
LIBSSH2_FREE(session, strm->next_out); LIBSSH2_FREE(session, out);
return -1; return -1;
} }
if (strm->avail_in) { if (strm->avail_in) {
@ -220,7 +220,7 @@ static int libssh2_comp_method_zlib_comp(LIBSSH2_SESSION *session, int compress,
} }
if (status != Z_OK) { if (status != Z_OK) {
libssh2_error(session, LIBSSH2_ERROR_ZLIB, "compress/decompression failure", 0); libssh2_error(session, LIBSSH2_ERROR_ZLIB, "compress/decompression failure", 0);
LIBSSH2_FREE(session, strm->next_out); LIBSSH2_FREE(session, out);
return -1; return -1;
} }
} }