From b7ba8c625637f3a161cafd81c4a8a30b1f3971b3 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 29 May 2017 17:16:25 +0200 Subject: rpc: Avoid use-after-free when creating socket base directory Spotted by clang-analyzer. --- p11-kit/server.c | 1 - 1 file changed, 1 deletion(-) (limited to 'p11-kit') diff --git a/p11-kit/server.c b/p11-kit/server.c index 8e54b28..97e18e2 100644 --- a/p11-kit/server.c +++ b/p11-kit/server.c @@ -655,7 +655,6 @@ main (int argc, } socket_name = p11_path_build (socket_base, name, NULL); - free (socket_base); free (name); } else { socket_name = strdup (name); -- cgit v1.1