Explorar el Código

server.mod: Fix memory leak on failure to initiate SSL

Bryan Drewery hace 5 meses
padre
commit
a45e9e3d85
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/mod/server.mod/servmsg.cc

+ 1 - 0
src/mod/server.mod/servmsg.cc

@@ -2210,6 +2210,7 @@ static void server_dns_callback(int id, void *client_data, const char *host,
         putlog(LOG_SERV, "*", "SSL Failed to connect to %s (Error while switching to SSL)", dcc[servidx].host);
         trying_server = 0;
         lostdcc(servidx);
+        delete[] ip;
         return;
       }
     }