fix: leaked memory from `strdup` called by lldcl module
This commit is contained in:
parent
27a4d6e465
commit
3025ff3203
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue