Fixed memory leaks in maxinfo.c and httpd.c

This commit is contained in:
Markus Makela
2015-08-21 08:08:45 +03:00
parent c001e030af
commit 8a362d6668
2 changed files with 11 additions and 0 deletions

View File

@ -383,6 +383,16 @@ int n_connect = 0;
static int
httpd_close(DCB *dcb)
{
if(dcb->dcb_readqueue)
{
while((dcb->dcb_readqueue = GWBUF_CONSUME_ALL(dcb->dcb_readqueue)));
}
if(dcb->writeq)
{
while((dcb->writeq = GWBUF_CONSUME_ALL(dcb->writeq)));
}
return 0;
}

View File

@ -746,6 +746,7 @@ RESULTSET *set;
resultset_free(set);
}
}
gwbuf_free(queue);
return 1;
}