fix memleak in kr_delivery_get_until_final