From: Vsevolod Stakhov Date: Mon, 14 Mar 2016 23:58:28 +0000 (+0000) Subject: [Fix] Fix memory leak in HTTP request code X-Git-Tag: 1.2.0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2f9b8137882da7301a02971d9910b579f6eff3;p=thirdparty%2Frspamd.git [Fix] Fix memory leak in HTTP request code --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 0fe8588e77..5e8484e249 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; }