fix(feed): Fixed a leak.

This commit is contained in:
Spencer Brower
2026-09-02 16:42:13 -04:00
parent 489577b220
commit d02b22e94e
2 changed files with 155 additions and 2 deletions
+2 -2
View File
@@ -111,8 +111,7 @@ generate_sitemap :: proc(site: ^Site) -> string {
return strings.to_string(sb)
}
// TODO: Leaks
format_rfc822 :: proc(iso: string) -> string {
format_rfc822 :: proc(iso: string, allocator := context.temp_allocator) -> string {
if len(iso) < 19 {
// TODO: should indicate error somehow
return iso
@@ -134,6 +133,7 @@ format_rfc822 :: proc(iso: string) -> string {
t,
offset / 60,
offset % 60,
allocator = allocator,
)
}