MCPcopy Create free account
hub / github.com/3proxy/3proxy / close_sql

Function close_sql

src/auth.c:1234–1248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232
1233
1234void close_sql(){
1235 if(hstmt) {
1236 SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
1237 hstmt = NULL;
1238 }
1239 if(hdbc){
1240 SQLDisconnect(hdbc);
1241 SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
1242 hdbc = NULL;
1243 }
1244 if(henv) {
1245 SQLFreeHandle(SQL_HANDLE_ENV, henv);
1246 henv = NULL;
1247 }
1248}
1249
1250int attempt = 0;
1251time_t attempt_time = 0;

Callers 5

CommandHandlerFunction · 0.85
mysigtermFunction · 0.85
init_sqlFunction · 0.85
logsqlFunction · 0.85
ifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected