feat: implemented liballoc for proper malloc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user