Add disconnecting to zmc to free up resources.
This commit is contained in:
parent
cb60b6c141
commit
6ac5472606
|
@ -452,6 +452,7 @@ int main(int argc, char *argv[]) {
|
||||||
if ( mysql_query(&dbconn, sql) ) {
|
if ( mysql_query(&dbconn, sql) ) {
|
||||||
Error("Can't run query: %s", mysql_error(&dbconn));
|
Error("Can't run query: %s", mysql_error(&dbconn));
|
||||||
}
|
}
|
||||||
|
monitors[i]->disconnect();
|
||||||
delete monitors[i];
|
delete monitors[i];
|
||||||
}
|
}
|
||||||
delete [] monitors;
|
delete [] monitors;
|
||||||
|
|
Loading…
Reference in New Issue