fixed memory leak
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 9 Sep 2010 19:38:22 +0000 (21:38 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 9 Sep 2010 19:38:41 +0000 (21:38 +0200)
src/pluto/kernel.c

index fc37c01..8e330b8 100644 (file)
@@ -1624,6 +1624,7 @@ void kernel_finalize()
 {
        hydra->kernel_interface->remove_listener(hydra->kernel_interface,
                                                                                         kernel_handler);
+       free(kernel_handler);
 }
 
 /* Note: install_inbound_ipsec_sa is only used by the Responder.