Add disconnecting to zmc to free up resources.

This commit is contained in:
Isaac Connor 2021-02-03 16:58:03 -05:00
parent cb60b6c141
commit 6ac5472606
1 changed files with 1 additions and 0 deletions

View File

@ -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;