diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 08:03:38 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 07:56:01 +0200 |
commit | eb8f5859b1349f8147ba47a1da8032df192f2370 (patch) | |
tree | a2fab941c7e96f641f99805ed701bded9366b9e2 /p11-kit/p11-kit.c | |
parent | ab1caffd9e09fd4d6ab92713de29436db0da6dea (diff) | |
download | p11-kit-eb8f5859b1349f8147ba47a1da8032df192f2370.tar.gz |
Fix various issues highlighted by coverity scanner
Among others fix possible usage of large stack allocation.
Diffstat (limited to 'p11-kit/p11-kit.c')
-rw-r--r-- | p11-kit/p11-kit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p11-kit/p11-kit.c b/p11-kit/p11-kit.c index 28c6f4a..34b9476 100644 --- a/p11-kit/p11-kit.c +++ b/p11-kit/p11-kit.c @@ -84,6 +84,9 @@ p11_kit_external (int argc, /* At this point we have no command */ p11_message ("'%s' is not a valid command. See 'p11-kit --help'", argv[0]); + + free (filename); + free (path); return 2; } @@ -109,6 +112,9 @@ p11_kit_extract (int argc, /* At this point we have no command */ p11_message ("'%s' is not a valid command. See 'p11-kit --help'", argv[0]); + + free (path); + free (args); return 2; } |