From cf3990365a8b1b9777a832b321eeeefc29716fd4 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sat, 23 Sep 2017 14:57:34 +0200 Subject: cmCPluginAPI: do not check pointer before calling free() --- Source/cmCPluginAPI.cxx | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v0.12