From 625178800a53dad69fddd735baf999c6f7a1373b Mon Sep 17 00:00:00 2001 From: Fredrik Thulin <fredrik@thulin.net> Date: Fri, 14 Dec 2012 12:58:12 +0100 Subject: [PATCH] gck_rpc_layer_initialize: Fix small memory leak. --- gck-rpc-dispatch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gck-rpc-dispatch.c b/gck-rpc-dispatch.c index f1b4798..da802c1 100644 --- a/gck-rpc-dispatch.c +++ b/gck-rpc-dispatch.c @@ -2346,6 +2346,8 @@ int gck_rpc_layer_initialize(const char *prefix, CK_FUNCTION_LIST_PTR module) snprintf(pkcs11_socket_path, sizeof(pkcs11_socket_path), "%s", prefix); + + free(ip); } else { snprintf(pkcs11_socket_path, sizeof(pkcs11_socket_path), "%s/socket.pkcs11", prefix); -- GitLab