ensure cdict is properly reset to NULL

This commit is contained in:
Yann Collet
2025-02-05 18:42:00 -08:00
parent 7406d2b6eb
commit f11bd19c7f
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1323,6 +1323,7 @@ size_t ZSTDMT_initCStream_internal(
/* update dictionary */
ZSTD_freeCDict(mtctx->cdictLocal);
mtctx->cdictLocal = NULL;
mtctx->cdict = NULL;
if (dict) {
if (dictContentType == ZSTD_dct_rawContent) {
mtctx->inBuff.prefix.start = (const BYTE*)dict;