Skip to content

Commit

Permalink
Fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
katajakasa committed Jul 4, 2024
1 parent 9d17765 commit 8cff44b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/formats/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ int sd_script_decode(sd_script *script, const char *input, int *invalid_pos) {
}
goto failed_parse;
}

str_free(&src);
sd_script_frame_free(&frame);
return SD_SUCCESS;

failed_parse:
Expand Down

0 comments on commit 8cff44b

Please sign in to comment.