fix: leaked memory from `strdup` called by lldcl module

This commit is contained in:
Sven Vogel 2024-10-10 20:44:51 +02:00
parent 27a4d6e465
commit 3025ff3203
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ bool lldc_link(TargetConfig* target_config, TargetLinkConfig* link_config) {
if (!code) { if (!code) {
print_message(Error, message); print_message(Error, message);
}
if (message != NULL) {
free((void*) message); free((void*) message);
} }