summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-29 17:16:25 +0200
committerDaiki Ueno <ueno@gnu.org>2017-05-29 17:28:51 +0200
commitb7ba8c625637f3a161cafd81c4a8a30b1f3971b3 (patch)
tree1d13b0cf761cd00b62832a3484ea1e6a2bcbfbea /p11-kit
parenta2a2108fce9a5cebaee17f29bda8d9edf6a0fbc8 (diff)
rpc: Avoid use-after-free when creating socket base directory
Spotted by clang-analyzer.
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/server.c1
1 files changed, 0 insertions, 1 deletions
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);