aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 7802cc41..34598529 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -755,8 +755,10 @@ rc_service_mark(const char *service, const RC_SERVICE state)
RC_SVCDIR "/%s/%s",
rc_parse_service_state(RC_SERVICE_WASINACTIVE),
base);
- if (symlink(init, was) == -1)
+ if (symlink(init, was) == -1) {
+ free(init);
return false;
+ }
skip_wasinactive = true;
}
if (unlink(file) == -1) {