summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-10-16 18:16:51 +0200
committerDaiki Ueno <ueno@gnu.org>2018-10-17 10:13:32 +0200
commit1f78cb0b4dd193ec1f1b2b424a497a6c2edec043 (patch)
tree022e60c8f415723764f62989fd1779f03b8baf76 /p11-kit
parent213ea0815ef45411bf6c134918b79d2aad69c1dc (diff)
rpc-server: p11_kit_remote_serve_tokens: Fix memleak
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/rpc-server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/p11-kit/rpc-server.c b/p11-kit/rpc-server.c
index 3a8991d..5b3dbf0 100644
--- a/p11-kit/rpc-server.c
+++ b/p11-kit/rpc-server.c
@@ -2285,6 +2285,11 @@ p11_kit_remote_serve_tokens (const char **tokens,
p11_kit_modules_release (modules);
if (error != 0)
errno = error;
+ if (uris) {
+ for (i = 0; i < n_tokens; i++)
+ p11_kit_uri_free (uris[i]);
+ free (uris);
+ }
return ret;
}