From f41259db69b8d2549688f3cac79e06e7b40b1c6a Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 27 Oct 2015 08:08:35 +0100 Subject: [PATCH] Use newly allocated queue backing store... Stupid me forgot to change the pointer and free the old one. --- src/queue/put.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/queue/put.c b/src/queue/put.c index e91aa1b..bb07785 100644 --- a/src/queue/put.c +++ b/src/queue/put.c @@ -42,6 +42,8 @@ _TR_queueResize(TR_Queue this, size_t split) VPSIZE(this->size - this->start)); this->start = GROWTH + this->start; this->size = new_size; + TR_MEM_FREE(this->data); + this->data = new; } void