diff --git a/src/link/lldc/lldc.c b/src/link/lldc/lldc.c index 2d6c6de..39a93ad 100644 --- a/src/link/lldc/lldc.c +++ b/src/link/lldc/lldc.c @@ -85,6 +85,9 @@ bool lldc_link(TargetConfig* target_config, TargetLinkConfig* link_config) { if (!code) { print_message(Error, message); + } + + if (message != NULL) { free((void*) message); }