[ldm] Reset loadedDictEnd when the context is reset

This commit is contained in:
Nick Terrell
2020-05-18 12:35:44 -07:00
parent e804567d75
commit b2092c6dc4
3 changed files with 20 additions and 4 deletions
+1
View File
@@ -1576,6 +1576,7 @@ static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc,
ZSTD_window_init(&zc->ldmState.window);
ZSTD_window_clear(&zc->ldmState.window);
zc->ldmState.loadedDictEnd = 0;
}
DEBUGLOG(3, "wksp: finished allocating, %zd bytes remain available", ZSTD_cwksp_available_space(ws));