diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-09-23 14:57:34 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2017-09-23 15:30:44 +0200 |
commit | cf3990365a8b1b9777a832b321eeeefc29716fd4 (patch) | |
tree | 807e06210ed14674a965dd054fb004e40241e92f /Source/cmCPluginAPI.cxx | |
parent | 6e2b18535bf3ffd9400d73462fd2a0f1a609664e (diff) | |
download | cmake-cf3990365a8b1b9777a832b321eeeefc29716fd4.tar.gz |
cmCPluginAPI: do not check pointer before calling free()
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 8b6fd97eed..eee18c0a0d 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -454,9 +454,7 @@ void CCONV cmFreeArguments(int argc, char** argv) for (i = 0; i < argc; ++i) { free(argv[i]); } - if (argv) { - free(argv); - } + free(argv); } int CCONV cmGetTotalArgumentSize(int argc, char** argv) |