From 0793ac497ac49bf21443736f03fd2effc73af2d5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 12 Dec 2011 18:37:49 +0100 Subject: [PATCH] Fixed memory leak when handling IKEv1 error notifications. --- src/libcharon/sa/task_manager_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcharon/sa/task_manager_v1.c b/src/libcharon/sa/task_manager_v1.c index 65cce8e46..b20a9ac36 100755 --- a/src/libcharon/sa/task_manager_v1.c +++ b/src/libcharon/sa/task_manager_v1.c @@ -634,6 +634,7 @@ static status_t process_request(private_task_manager_t *this, if(notify->get_notify_type(notify) < 16384) { DBG1(DBG_IKE, "Received %N error notification.", notify_type_names, notify->get_notify_type(notify)); + enumerator->destroy(enumerator); return FAILED; } break;