pull/293/head
René Cannaò 11 years ago
parent eb74677b53
commit 2b603a7fc1

@ -71,7 +71,9 @@ class ProxySQL_Poll {
~ProxySQL_Poll() {
unsigned int i;
for (i=0;i<len;i++) {
if (myds[i]->myds_type==MYDS_LISTENER) {
if (
myds[i] && // fix bug #278 . This should be caused by not initialized datastreams used to ping the backend
myds[i]->myds_type==MYDS_LISTENER) {
delete myds[i];
}
}

@ -600,7 +600,9 @@ MySQL_Thread::~MySQL_Thread() {
}
unsigned int i;
for (i=0;i<mypolls.len;i++) {
if (mypolls.myds[i]->myds_type==MYDS_LISTENER) {
if (
mypolls.myds[i] && // fix bug #278 . This should be caused by not initialized datastreams used to ping the backend
mypolls.myds[i]->myds_type==MYDS_LISTENER) {
delete mypolls.myds[i];
}
}

Loading…
Cancel
Save