fix: valgrind error

This commit is contained in:
Hongze Cheng 2022-12-20 17:14:15 +08:00
parent e5728dbb43
commit eddad1e790
1 changed files with 8 additions and 0 deletions

View File

@ -309,6 +309,14 @@ int32_t tRowBuild(SArray *aColVal, STSchema *pTSchema, SRow **ppRow) {
break;
}
if (pb) {
if (flag == (HAS_VALUE | HAS_NULL | HAS_NONE)) {
memset(pb, 0, BIT2_SIZE(pTSchema->numOfCols - 1));
} else {
memset(pb, 0, BIT1_SIZE(pTSchema->numOfCols - 1));
}
}
// build impl
while (pTColumn) {
if (pColVal) {