diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 23:58:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 23:58:28 +0000 |
commit | 7a2f9b8137882da7301a02971d9910b579f6eff3 (patch) | |
tree | 41e8a05152a32f05bc40510a25dd3ea6c0467200 /src/libutil/http.c | |
parent | bf6fa98b93bab3e796109e3f0098244cdbab1240 (diff) | |
download | rspamd-7a2f9b8137882da7301a02971d9910b579f6eff3.tar.gz rspamd-7a2f9b8137882da7301a02971d9910b579f6eff3.zip |
[Fix] Fix memory leak in HTTP request code
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |