From 568f874d123c4dd6b6f6cc4d64e34609ac11b54d Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Fri, 20 Dec 2019 11:43:29 +0800 Subject: [PATCH] fix bug in issue #969. [tbase-1368] --- src/util/src/tlosertree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tlosertree.c b/src/util/src/tlosertree.c index 98d5e1cf35..4fe68970b9 100644 --- a/src/util/src/tlosertree.c +++ b/src/util/src/tlosertree.c @@ -45,7 +45,7 @@ uint8_t tLoserTreeCreate(SLoserTreeInfo** pTree, int32_t numOfEntries, void* par *pTree = (SLoserTreeInfo*)calloc(1, sizeof(SLoserTreeInfo) + sizeof(SLoserTreeNode) * totalEntries); if ((*pTree) == NULL) { - pError("allocate memory for losertree failed. out of memory"); + pError("allocate memory for loser-tree failed. reason:%s", strerror(errno)); return TSDB_CODE_CLI_OUT_OF_MEMORY; }