Skip to content

Commit

Permalink
pddlp-count-tokens: free memory allocated for source file
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-puida committed Sep 10, 2024
1 parent 7271125 commit 51eea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pddlp-count-tokens.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ main(int argc, char **argv)

struct count_tokens_result result = count_tokens(source);
printf("tokens: %d\nerrors: %d\n", result.token_count, result.error_count);

free(source);
return 0;
}

0 comments on commit 51eea85

Please sign in to comment.