Fixed a memory leak in tee.c:freeSession, where tee session wasn't freed

This commit is contained in:
VilhoRaatikka
2014-12-23 13:36:05 +02:00
parent f0d8ed0cf2
commit 51315c0764
3 changed files with 12 additions and 4 deletions

View File

@ -680,6 +680,13 @@ int log_no_master = 1;
ptr->server->name,
ptr->server->port)));
}
/**
* Here we say: If the server's state changed
* so that it isn't running or some other way
* lost cluster membership, call call-back function
* of every DCB for which such callback was
* registered for this kind of issue (DCB_REASON_...)
*/
if (!(SERVER_IS_RUNNING(ptr->server)) ||
!(SERVER_IS_IN_CLUSTER(ptr->server)))
{