diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-11-22 16:19:52 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-11-22 18:17:17 +0100 |
commit | f0c82b07f8b31a4b86de32436cb4f5053de16336 (patch) | |
tree | ebd98235e60db5b9c242e7a04ca0881e1191f78a /p11-kit | |
parent | 8287689158403090b5828a568b122b5b3a3ce987 (diff) |
build: Suppress cppcheck errors
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/server.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/p11-kit/server.c b/p11-kit/server.c index a737c2a..75b93d6 100644 --- a/p11-kit/server.c +++ b/p11-kit/server.c @@ -147,13 +147,17 @@ server_new (const char **tokens, size_t n_tokens, const char *provider, if (strncmp (tokens[0], "pkcs11:", 7) == 0) { if (server->provider) { server->module = p11_kit_module_load (server->provider, 0); - if (server->module == NULL) + if (server->module == NULL) { + free (server); return NULL; + } } } else { server->module = p11_kit_module_load (tokens[0], 0); - if (server->module == NULL) + if (server->module == NULL) { + free (server); return NULL; + } } #endif /* OS_WIN32 */ |