Fixed leak of a hash when checking out by hash
authorMartin Willi <martin@revosec.ch>
Wed, 21 Dec 2011 12:55:30 +0000 (13:55 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:30 +0000 (17:31 +0100)
src/libcharon/sa/ike_sa_manager.c

index d992ce1..35b9cab 100644 (file)
@@ -1027,6 +1027,7 @@ METHOD(ike_sa_manager_t, checkout_by_message, ike_sa_t*,
                                ike_sa = entry->ike_sa;
                                DBG2(DBG_MGR, "IKE_SA %s[%u] checked out by hash",
                                                ike_sa->get_name(ike_sa), ike_sa->get_unique_id(ike_sa));
+                               chunk_free(&hash);
                        }
                        unlock_single_segment(this, segment);
                }