ha: Fix memory leak if Child SA key derivation fails

Fixes: aa334daa9b ("Use a sync message cache to resynchronize IKE_SAs without rekeying")
This commit is contained in:
Tobias Brunner
2026-07-24 08:47:38 +02:00
parent 77cfa835cd
commit 98fd5e9893
+1
View File
@@ -875,6 +875,7 @@ static void process_child_add(private_ha_dispatcher_t *this,
child_sa->destroy(child_sa);
proposal->destroy(proposal);
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
message->destroy(message);
return;
}
child_sa->set_proposal(child_sa, proposal);