# HG changeset patch # User Matti Hamalainen # Date 1605100083 -7200 # Node ID ff724f45162ad75ca2c8b470f17497c1e0fc2904 # Parent d51c277bea6beaefb9751100acffa743d3a66014 Add th_ioctx::memData NULL check in th_mem_realloc() as well. diff -r d51c277bea6b -r ff724f45162a th_ioctx_mem.c --- a/th_ioctx_mem.c Wed Nov 11 13:35:03 2020 +0200 +++ b/th_ioctx_mem.c Wed Nov 11 15:08:03 2020 +0200 @@ -65,6 +65,9 @@ return FALSE; } + if (ctx->memData == NULL) + ctx->memAlloc = 0; + // Check against max size if (ctx->maxSize > 0 && newSize > ctx->maxSize) {