diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-05-24 19:01:41 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-05-24 19:01:41 -0400 |
commit | 0d99da583acc79163057561e4a2deeae8a5ae083 (patch) | |
tree | 74b8902f2713f1f797cda53c3e25b199ab10a4ea | |
parent | 2d6657e919087d44f779928636e9b97ab900bdd7 (diff) |
removed tmp->text memory leak
-rw-r--r-- | buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |