search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dupe snippet text before SQLite row memory is freed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 38e9340d 9900a766

+3 -1
+3 -1
backend/src/search.zig
··· 1000 1000 if (rows.next()) |row| { 1001 1001 const preview = row.text(0); 1002 1002 if (preview.len > 0) { 1003 - map.put(uri, preview) catch continue; 1003 + // dupe before rows.deinit() frees the backing memory 1004 + const duped = alloc.dupe(u8, preview) catch continue; 1005 + map.put(uri, duped) catch continue; 1004 1006 } 1005 1007 } 1006 1008 }