feat: implemented liballoc for proper malloc

This commit is contained in:
2021-02-27 13:19:14 +01:00
parent 9f72d4bb1a
commit 9fdc89a3a6
6 changed files with 825 additions and 80 deletions

View File

@@ -38,7 +38,7 @@ char getc() {
KeyEvent *event = get_next_event();
char retval = 0;
if (event == NULL) {
goto _getc_end;
goto _getc_end_nofree;
}
if (event->is_release) {
goto _getc_end;
@@ -53,6 +53,7 @@ char getc() {
}
_getc_end:
free_event(event);
_getc_end_nofree:
if (retval != 0) {
return retval;
}