summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-09-23 12:57:34 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2017-09-23 13:30:44 (GMT)
commitcf3990365a8b1b9777a832b321eeeefc29716fd4 (patch)
tree807e06210ed14674a965dd054fb004e40241e92f /Source/cmCPluginAPI.cxx
parent6e2b18535bf3ffd9400d73462fd2a0f1a609664e (diff)
downloadCMake-cf3990365a8b1b9777a832b321eeeefc29716fd4.zip
CMake-cf3990365a8b1b9777a832b321eeeefc29716fd4.tar.gz
CMake-cf3990365a8b1b9777a832b321eeeefc29716fd4.tar.bz2
cmCPluginAPI: do not check pointer before calling free()
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 8b6fd97..eee18c0 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)