]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Plug another memory leak.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 15:41:18 +0000 (16:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 15:41:18 +0000 (16:41 +0100)
src/plugins/surbl.c

index 531a8f3bae9a19c7bbe8b77349a97c2fc7190f33..39dfc2894e31e3835c3156d4336052c0f1a4afce 100644 (file)
@@ -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;