MCPcopy Create free account
hub / github.com/MariaDB/server / deflateEnd

Function deflateEnd

zlib/deflate.c:1293–1310  ·  view source on GitHub ↗

========================================================================= */

Source from the content-addressed store, hash-verified

1291
1292/* ========================================================================= */
1293int ZEXPORT deflateEnd(z_streamp strm) {
1294 int status;
1295
1296 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
1297
1298 status = strm->state->status;
1299
1300 /* Deallocate in reverse order of allocations: */
1301 TRY_FREE(strm, strm->state->pending_buf);
1302 TRY_FREE(strm, strm->state->head);
1303 TRY_FREE(strm, strm->state->prev);
1304 TRY_FREE(strm, strm->state->window);
1305
1306 ZFREE(strm, strm->state);
1307 strm->state = Z_NULL;
1308
1309 return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK;
1310}
1311
1312/* =========================================================================
1313 * Copy the source state to the destination state.

Callers 13

compress_zlibFunction · 0.85
my_compress_bufferFunction · 0.85
page_zip_compressFunction · 0.85
fts_zip_deflate_endFunction · 0.85
fts_index_fetch_wordsFunction · 0.85
zipCloseFileInZipRaw64Function · 0.85
CloseTableFileMethod · 0.85
destroyFunction · 0.85
gzclose_wFunction · 0.85
compress2_zFunction · 0.85
deflateInit2_Function · 0.85

Calls 1

deflateStateCheckFunction · 0.85

Tested by

no test coverage detected