Fix memory leak in service command
[pazpar2-moved-to-github.git] / src / http_command.c
index d4806ae..3ab415c 100644 (file)
@@ -668,6 +668,7 @@ static void cmd_service(struct http_channel *c)
 
         wrbuf_write(c->wrbuf, (const char *) buf->content, buf->use);
         xmlBufferFree(buf);
+        xmlFreeNode(tmp);
     }
 
     response_close(c, 0);