changeset 732:d190dccc3ee6

Fix free.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2022 00:17:57 +0200
parents 98d12f33da7b
children 79d06eb6d39f
files th_datastruct.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }