- commit
- 6e33c6b
- parent
- 96a4b62
- author
- Eric Bower
- date
- 2025-11-26 20:05:26 -0500 EST
fix: free socket_path and the clients array backing storage before the daemon process exits
1 files changed,
+1,
-0
+1,
-0
1@@ -361,6 +361,7 @@ fn attach(daemon: *Daemon) !void {
2 try daemonLoop(daemon, server_sock_fd, pty_fd);
3 // Reap PTY child to prevent zombie
4 _ = posix.waitpid(daemon.pid, 0);
5+ daemon.deinit();
6 return;
7 }
8 posix.close(server_sock_fd);