uh funny forget to free things

This commit is contained in:
Murphy 2023-04-13 18:57:30 -04:00
parent f79a2c6a9d
commit 43e7f57fd0
2 changed files with 3 additions and 1 deletions

View file

@ -95,6 +95,7 @@ next:
void* ptr = (void*) tape_ptr(tape);
memcpy(&old, ptr, sizeof(Tape*));
memset(ptr, 0, sizeof(Tape*));
tape_free(tape);
free(old);
break;
}

View file

@ -54,8 +54,9 @@ retest:
case '%':
return Clear;
case '\n':
case '\t':
case ' ':
while(c = next_char(), c == '\n' || c == ' ');
while(c = next_char(), c == '\n' || c == '\t' || c == ' ');
goto retest;
case '/':
while(c = next_char(), c != '\n' && c != EOF);