aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/task_manager_v1.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-12-12 18:37:49 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:31:18 +0100
commit0793ac497ac49bf21443736f03fd2effc73af2d5 (patch)
treea33328194da72a7b41c618e7ece8016872baacf4 /src/libcharon/sa/task_manager_v1.c
parent4dbd81c66959dbb78485941e3ab9705c5b05776c (diff)
downloadstrongswan-0793ac497ac49bf21443736f03fd2effc73af2d5.tar.bz2
strongswan-0793ac497ac49bf21443736f03fd2effc73af2d5.tar.xz
Fixed memory leak when handling IKEv1 error notifications.
Diffstat (limited to 'src/libcharon/sa/task_manager_v1.c')
-rwxr-xr-xsrc/libcharon/sa/task_manager_v1.c1
1 files changed, 1 insertions, 0 deletions
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;