summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-29 13:20:15 +0200
committerDaiki Ueno <ueno@gnu.org>2017-05-29 13:31:42 +0200
commitcd64b9a7cb4b9f0030d17917370f50753671b93a (patch)
treedf6220b550b683809edaee4439b876cf5985e3b8
parent9cbf590b468f9596284c5bc34be8add09f3f5bee (diff)
server: Avoid use-after-free
Reported by Mantas Mikulėnas in: https://bugs.freedesktop.org/show_bug.cgi?id=101212
-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 55bdc9b..8e54b28 100644
--- a/p11-kit/server.c
+++ b/p11-kit/server.c
@@ -662,7 +662,6 @@ main (int argc,
}
server = server_new ((const char **)argv, argc, provider, socket_name);
- free (socket_name);
if (server == NULL) {
ret = 1;
goto out;