uh funny forget to free things
This commit is contained in:
parent
f79a2c6a9d
commit
43e7f57fd0
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue