Skip to content

Commit

Permalink
Free ab
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZhengHao committed Nov 6, 2023
1 parent ea2bb08 commit aaeb70f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaeb70f

Please sign in to comment.