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); void* ptr = (void*) tape_ptr(tape);
memcpy(&old, ptr, sizeof(Tape*)); memcpy(&old, ptr, sizeof(Tape*));
memset(ptr, 0, sizeof(Tape*)); memset(ptr, 0, sizeof(Tape*));
tape_free(tape);
free(old); free(old);
break; break;
} }

View file

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