Merge pull request #2406 from terrelln/linux-wrapper-api

[linux] Add the linux wrapper API
This commit is contained in:
Nick Terrell
2020-12-02 16:49:03 -08:00
committed by GitHub
10 changed files with 819 additions and 182 deletions
+1 -1
View File
@@ -3574,7 +3574,7 @@ size_t ZSTD_compress(void* dst, size_t dstCapacity,
ZSTD_CCtx* cctx = ZSTD_createCCtx();
RETURN_ERROR_IF(!cctx, memory_allocation, "ZSTD_createCCtx failed");
result = ZSTD_compressCCtx(cctx, dst, dstCapacity, src, srcSize, compressionLevel);
ZSTD_freeCCtx(cctx);;
ZSTD_freeCCtx(cctx);
#else
ZSTD_CCtx ctxBody;
ZSTD_initCCtx(&ctxBody, ZSTD_defaultCMem);