From 0d99da583acc79163057561e4a2deeae8a5ae083 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 24 May 2020 19:01:41 -0400 Subject: removed tmp->text memory leak --- buf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/buf.c b/buf.c index 7e270c3..61c0470 100644 --- a/buf.c +++ b/buf.c @@ -51,6 +51,7 @@ void extendbuf(buf* buffer){ void shortenbuf(buf* buffer){ buf_node* tmp = buffer->tail; buffer->tail = buffer->tail->next; + free(tmp->text); free(tmp); } -- cgit