code: fix a pair of leaks

This commit is contained in:
Isaac Freund
2020-07-17 16:01:35 +02:00
parent 0091445b9f
commit 43bcce9afe
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,7 @@ pub fn main() anyerror!void {
} else null;
defer if (startup_process) |child| {
_ = child.kill() catch |e| log.err(.server, "failed to terminate startup process: {}", .{e});
child.deinit();
};
log.info(.server, "running...", .{});