From 1135f798985fdba143d9faede3ef9a1e2a50a916 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 4 Jul 2006 13:29:16 +0000 Subject: [PATCH] fixed memleak when initiating a connection already up --- src/charon/threads/stroke_interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charon/threads/stroke_interface.c b/src/charon/threads/stroke_interface.c index 528d490d4..f6736a86f 100755 --- a/src/charon/threads/stroke_interface.c +++ b/src/charon/threads/stroke_interface.c @@ -505,6 +505,7 @@ static void stroke_initiate(private_stroke_t *this, stroke_msg_t *msg) { this->stroke_logger->log(this->stroke_logger, CONTROL, "connection \"%s\" already up", msg->initiate.name); + connection->destroy(connection); } while (ike_sas->remove_last(ike_sas, (void**)&ike_sa_id) == SUCCESS) {