Commit Diff


commit - bb20aeb9bcbb27eda540a6df2faf2d07e71d23f3
commit + ef82ef4ddb8b93e3d02197ffeed977d76dd99ba5
blob - 5853926e4df98dfc02a4c6e80e16f39135b7dca4
blob + 0052de8f91b505a639401253f79f8a6fbc9cf4bd
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
@@ -104,6 +104,8 @@ ConfSSL_Init(void)
 	free(Conf_SSLOptions.DHFile);
 	Conf_SSLOptions.DHFile = NULL;
 	array_free_wipe(&Conf_SSLOptions.KeyFilePassword);
+
+	array_free(&Conf_SSLOptions.ListenPorts);
 }
 
 /**
@@ -689,6 +691,7 @@ Set_Defaults(bool InitServers)
 		 PACKAGE_NAME, PACKAGE_VERSION);
 	free(Conf_ListenAddress);
 	Conf_ListenAddress = NULL;
+	array_free(&Conf_ListenPorts);
 	array_free(&Conf_Motd);
 	strlcpy(Conf_MotdFile, SYSCONFDIR, sizeof(Conf_MotdFile));
 	strlcat(Conf_MotdFile, MOTD_FILE, sizeof(Conf_MotdFile));