git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit51d11f2e3ed861f5413159ee435b6f9976e2125a
parent5885e794ef
authorIsaac Freund <[email protected]>
date2026-04-25 13:55
river: fix double free

 river/main.zig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/river/main.zig b/river/main.zig
index a75273b..210e2dc 100644
--- a/river/main.zig
+++ b/river/main.zig
@@ -193,7 +193,6 @@ pub fn main(init: std.process.Init.Minimal) anyerror!void {
                 posix.system.exit(1);
             }
         }
-        util.gpa.free(cmd);
         // Since the child has called setsid, the pid is the pgid
         break :blk pid;
     } else null;