aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 16:41:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 16:41:18 +0100
commit6d40820bdeef5882dc91f7c7979f01a4cc94b824 (patch)
tree3a1016b66ac52eb9f776939b8e024d184e88ad73
parent2965af455342740fd999e01a8c7dac7741214648 (diff)
downloadrspamd-6d40820bdeef5882dc91f7c7979f01a4cc94b824.tar.gz
rspamd-6d40820bdeef5882dc91f7c7979f01a4cc94b824.zip
Plug another memory leak.
-rw-r--r--src/plugins/surbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 531a8f3ba..39dfc2894 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -1024,7 +1024,7 @@ register_redirector_call (struct rspamd_url *url, struct rspamd_task *task,
RSPAMD_HTTP_CLIENT_SIMPLE,
RSPAMD_HTTP_CLIENT, NULL);
msg = rspamd_http_new_message (HTTP_REQUEST);
- msg->url = g_string_new (struri (url));
+ g_string_assign (msg->url, struri (url));
param->sock = s;
param->suffix = suffix;
param->redirector = selected;