]> source.dussan.org Git - rspamd.git/commitdiff
Remove memory leak.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Jan 2014 15:46:33 +0000 (15:46 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Jan 2014 15:46:33 +0000 (15:46 +0000)
src/client/rspamdclient.c

index 7cb913f6ff6a9ac4be7c6b7bef2c068c0a248727..d4b6e5d8b8c3b9af0a30363d13bdb9536f9bfe8e 100644 (file)
@@ -188,7 +188,7 @@ rspamd_client_command (struct rspamd_client_connection *conn,
                rspamd_http_message_add_header (req->msg, hn, hv);
        }
 
-       req->msg->url = g_string_new ("/");
+       g_string_append_c (req->msg->url, '/');
        g_string_append (req->msg->url, command);
 
        conn->req = req;