Fixed memory leaks in maxinfo.c and httpd.c
This commit is contained in:
@ -383,6 +383,16 @@ int n_connect = 0;
|
|||||||
static int
|
static int
|
||||||
httpd_close(DCB *dcb)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -746,6 +746,7 @@ RESULTSET *set;
|
|||||||
resultset_free(set);
|
resultset_free(set);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gwbuf_free(queue);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user