mem-cred: Fix memory leak when replacing existing CRLs

Fixes #1442.
This commit is contained in:
Tobias Brunner
2016-05-11 12:16:36 +02:00
parent 81b9de0126
commit 0ba905cf24
@@ -250,6 +250,7 @@ METHOD(mem_cred_t, add_crl, bool,
if (new)
{
this->untrusted->remove_at(this->untrusted, enumerator);
current->destroy(current);
}
else
{