# HG changeset patch # User Matti Hamalainen # Date 1670365077 -7200 # Node ID d190dccc3ee66352f9a66f6454d0ba9709a93bab # Parent 98d12f33da7bcf01b168b37d9188360147d51542 Fix free. diff -r 98d12f33da7b -r d190dccc3ee6 th_datastruct.c --- a/th_datastruct.c Wed Dec 07 00:15:38 2022 +0200 +++ b/th_datastruct.c Wed Dec 07 00:17:57 2022 +0200 @@ -314,7 +314,7 @@ if ((res = th_ringbuf_init(*buf, size, mdeallocator)) != THERR_OK) { - th_free(buf); + th_free(*buf); return res; }