From aaeb70ffb20798dd04e3cc59ac6fb2eea4bd361d Mon Sep 17 00:00:00 2001 From: ChenZhengHao Date: Mon, 6 Nov 2023 09:52:44 +0800 Subject: [PATCH] Free ab --- kilo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kilo.c b/kilo.c index 76bc2ee..dfc948b 100644 --- a/kilo.c +++ b/kilo.c @@ -1002,6 +1002,7 @@ void editorClearScreen(void) { struct abuf ab = ABUF_INIT; abAppend(&ab,"\x1b[J", E.numrows); write(STDOUT_FILENO,ab.b,ab.len); + abFree(&ab); } /* Set an editor status message for the second line of the status, at the