szn

Bug 2 — Invalid-free of string literal in dispatch

2. Invalid-free of string literal in dispatch

File: src/server/dispatch.zig:13–24

.data = allocator.dupe(u8, msg) catch "error",

When dupe fails (OOM), falls back to a static string literal. The caller always calls allocator.free(reply.data) — passing a static literal to free() is UB, will segfault under memory pressure. Status: ✅ FIXED — DispatchResult.is_owned flag prevents free on static data.