1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Delete the cert object after removing it from the cert list.

This commit is contained in:
Sadie Powell
2026-04-23 13:41:11 +01:00
parent 9aff71fb2f
commit 9434be29bc
+2 -2
View File
@@ -184,8 +184,8 @@ public:
FOREACH_MOD(OnNickClearCert, (this->nc));
for (const auto *cert : certs)
{
delete cert;
certmap.erase(cert->fingerprint);
delete cert;
}
this->certs.clear();
}
@@ -213,8 +213,8 @@ public:
// Delete the old cert list.
for (const auto *cert : cl->certs)
{
delete cert;
certmap.erase(cert->fingerprint);
delete cert;
}
cl->certs.clear();