aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buf.c1
1 files changed, 1 insertions, 0 deletions
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);
}