charon-tkm: Return cloned host from tkm_kernel_sad_t::get_dst_host()
[strongswan.git] / src / charon-tkm / src / ees / ees_callbacks.c
index f4107d9..a36629b 100644 (file)
@@ -47,4 +47,5 @@ void charon_esa_expire(result_type *res, const sp_id_type sp_id,
        DBG1(DBG_KNL, "ees: expire received for reqid %u, spi %x, dst %H", sp_id,
                 ntohl(spi_rem), dst);
        charon->kernel->expire(charon->kernel, protocol, spi_rem, dst, hard != 0);
+       dst->destroy(dst);
 }