Commits

Brian Curtin committed f79860d

Please PREFAST with a return when child_command is NULL.

  • Participants
  • Parent commits 709c0ef

Comments (0)

Files changed (1)

CLILauncher/launcher.c

                                     wcslen(cmdline) + 3;
         }
         child_command = calloc(child_command_size, sizeof(wchar_t));
-        if (child_command == NULL)
+        if (child_command == NULL) {
             error(RC_CREATE_PROCESS, L"unable to allocate %d bytes for child command.",
                   child_command_size);
+            return;
+        }
         if (no_suffix)
             _snwprintf_s(child_command, child_command_size,
                          child_command_size - 1, L"%s %s",