Fix memory leak in service command
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 May 2013 18:22:12 +0000 (20:22 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 May 2013 18:22:12 +0000 (20:22 +0200)
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);