# HG changeset patch # User Matti Hamalainen # Date 1583350274 -7200 # Node ID d8738bfad0a858885266ea24500cfdd69dfdd297 # Parent 527a4d29d3844754bff269d06e8b779ea5ff7d9e Nullify the strelems when freed. diff -r 527a4d29d384 -r d8738bfad0a8 th_string.c --- a/th_string.c Wed Mar 04 20:17:39 2020 +0200 +++ b/th_string.c Wed Mar 04 21:31:14 2020 +0200 @@ -684,6 +684,8 @@ } th_free(ctx->elems); + ctx->elems = NULL; + ctx->nelems = 0; } }