Skip to content

Commit

Permalink
Free memory
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Mar 17, 2010
1 parent b5c5580 commit 6b86e4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpnr.l
Expand Up @@ -98,6 +98,8 @@ int main(void) {
puts("require 'rpnr-runtime'");
for(i = 0; i < stack_length; i++) {
puts(stack[i]);
free(stack[i]);
}
free(stack);
return r;
}

0 comments on commit 6b86e4d

Please sign in to comment.