fix: catalog free issue

This commit is contained in:
dapan1121 2024-07-18 13:25:56 +08:00
parent 66245a54f0
commit 123b0e9378
4 changed files with 362 additions and 140 deletions

View File

@ -55,6 +55,7 @@ void *taosMemoryMallocAlign(uint32_t alignment, int64_t size);
#define TAOS_MEMSET(_s, _c, _n) ((void)memset(_s, _c, _n))
#define TAOS_MEMCPY(_d, _s, _n) ((void)memcpy(_d, _s, _n))
#define TAOS_MEMMOVE(_d, _s, _n) ((void)memmove(_d, _s, _n))
#define taosMemoryFreeClear(ptr) \
do { \

View File

@ -25,6 +25,7 @@ extern "C" {
#include "tcommon.h"
#include "ttimer.h"
#include "tglobal.h"
#include "os.h"
#define CTG_DEFAULT_CACHE_CLUSTER_NUMBER 6
#define CTG_DEFAULT_CACHE_VGROUP_NUMBER 100

View File

@ -1016,6 +1016,8 @@ int32_t ctgInitJob(SCatalog* pCtg, SRequestConnInfo* pConn, SCtgJob** job, const
_return:
ctgFreeJob(*job);
*job = NULL;
CTG_RET(code);
}

File diff suppressed because it is too large Load Diff