Skip to content

Commit aaeb70f

Browse files
author
ChenZhengHao
committed
Free ab
1 parent ea2bb08 commit aaeb70f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kilo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ void editorClearScreen(void) {
10021002
struct abuf ab = ABUF_INIT;
10031003
abAppend(&ab,"\x1b[J", E.numrows);
10041004
write(STDOUT_FILENO,ab.b,ab.len);
1005+
abFree(&ab);
10051006
}
10061007

10071008
/* Set an editor status message for the second line of the status, at the

0 commit comments

Comments
 (0)