未验证 提交 6dffa660 编写于 作者: wafwerar's avatar wafwerar 提交者: GitHub

Merge pull request #11889 from taosdata/fix/ZhiqiangWang/fix-15146-memory-free-error

fix(shell): memory free error.
......@@ -68,6 +68,7 @@ static void dmSetSignalHandle() {
static int32_t dmParseArgs(int32_t argc, char const *argv[]) {
int32_t cmdEnvIndex = 0;
if (argc < 2) return 0;
global.envCmd = taosMemoryMalloc(argc-1);
memset(global.envCmd, 0, argc-1);
for (int32_t i = 1; i < argc; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册