fixed fullbench freshCCtx scenario
This commit is contained in:
+7
-6
@@ -230,14 +230,15 @@ local_ZSTD_compressStream_freshCCtx(const void* src, size_t srcSize,
|
|||||||
void* dst, size_t dstCapacity,
|
void* dst, size_t dstCapacity,
|
||||||
void* payload)
|
void* payload)
|
||||||
{
|
{
|
||||||
ZSTD_CCtx* const cctx = ZSTD_createCCtx();
|
if (g_cstream != NULL) ZSTD_freeCCtx(g_cstream);
|
||||||
size_t r;
|
g_cstream = ZSTD_createCCtx();
|
||||||
assert(cctx != NULL);
|
assert(g_cstream != NULL);
|
||||||
|
|
||||||
r = local_ZSTD_compressStream(src, srcSize, dst, dstCapacity, payload);
|
{ size_t const r = local_ZSTD_compressStream(src, srcSize, dst, dstCapacity, payload);
|
||||||
|
ZSTD_freeCCtx(g_cstream);
|
||||||
ZSTD_freeCCtx(cctx);
|
g_cstream = NULL;
|
||||||
return r;
|
return r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
|
|||||||
Reference in New Issue
Block a user