From 7a60c71744f94edc66994537fddafaf0db594fb5 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 22 Sep 2022 17:44:23 +0200 Subject: [PATCH] Fixed memleak in greeting. --- httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpd.c b/httpd.c index 8e798a4..18a9d6e 100644 --- a/httpd.c +++ b/httpd.c @@ -41,6 +41,7 @@ void server_get_handler(d_char *req, char *q_path, int *status, xs *list = user_list(); char *p, *uid; xs *ul = xs_str_new("\n"); - s = xs_replace(s, "%userlist%", ul); + s = xs_replace(os, "%userlist%", ul); } *body = s;