From 7a2f9b8137882da7301a02971d9910b579f6eff3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Mar 2016 23:58:28 +0000 Subject: [PATCH] [Fix] Fix memory leak in HTTP request code --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index 0fe8588e7..5e8484e24 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1810,7 +1810,7 @@ rspamd_http_message_from_url (const gchar *url) } msg->host = rspamd_fstring_new_init (host, pu.field_data[UF_HOST].len); - msg->url = rspamd_fstring_new_init (path, pathlen); + msg->url = rspamd_fstring_append (msg->url, path, pathlen); return msg; } -- 2.39.5