From 6d40820bdeef5882dc91f7c7979f01a4cc94b824 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 May 2015 16:41:18 +0100 Subject: [PATCH] Plug another memory leak. --- src/plugins/surbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5