aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-24 19:01:41 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-24 19:01:41 -0400
commit0d99da583acc79163057561e4a2deeae8a5ae083 (patch)
tree74b8902f2713f1f797cda53c3e25b199ab10a4ea
parent2d6657e919087d44f779928636e9b97ab900bdd7 (diff)
removed tmp->text memory leak
-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);
}