!4923 修正CalculateContextSize使用正确的结构体

Merge pull request !4923 from chenxiaobin/fixMemcheck
This commit is contained in:
opengauss_bot
2024-03-14 11:22:24 +00:00
committed by Gitee
2 changed files with 4 additions and 1 deletions

View File

@ -434,7 +434,11 @@ void SetInstrNull()
void CalculateContextSize(MemoryContext ctx, int64* memory_size)
{
#ifndef ENABLE_MEMORY_CHECK
AllocSetContext* aset = (AllocSetContext*)ctx;
#else
AsanSetContext* aset = (AsanSetContext*)ctx;
#endif
MemoryContext child;
if (ctx == NULL)