From: Adam Dickmeiss Date: Tue, 26 Jan 2010 14:38:52 +0000 (+0100) Subject: Fix leak WRT server@id attr X-Git-Tag: v1.4.0~158 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=18c38880bdfe4694fdf6bc3bbbea90740930aa65;p=pazpar2-moved-to-github.git Fix leak WRT server@id attr --- diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 870151a..3b8a72e 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -724,10 +724,12 @@ static struct conf_server *server_create(struct conf_config *config, server->server_settings = 0; if (server_id) + { server->server_id = nmem_strdup(nmem, (const char *)server_id); + xmlFree(server_id); + } else server->server_id = 0; - for (n = node->children; n; n = n->next) { if (n->type != XML_ELEMENT_NODE)