From 5f0a948ebcf659a1f2c3d5fb30991ebdf73b5976 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 11 Aug 2017 15:39:20 +0200 Subject: client: Fix order of cleanup In C_GetFunctionList, state->virt is wrapped with a destroyer function free(). Thus p11_rpc_transport_free must be called before p11_virtual_unwrap. --- p11-kit/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p11-kit/client.c b/p11-kit/client.c index b4eb57f..26b2e74 100644 --- a/p11-kit/client.c +++ b/p11-kit/client.c @@ -220,7 +220,7 @@ p11_client_module_cleanup (void) for (; state != NULL; state = next) { next = state->next; - p11_virtual_unwrap (state->wrapped); p11_rpc_transport_free (state->rpc); + p11_virtual_unwrap (state->wrapped); } } -- cgit v1.1