fix more code

This commit is contained in:
Hongze Cheng 2023-04-14 21:59:08 +08:00
parent 01bacc10ef
commit bd1c8e1902
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "osMemory.h"
#include "tdataformat.h" #include "tdataformat.h"
#include "tsdb.h" #include "tsdb.h"
@ -1259,7 +1260,11 @@ void tBlockDataReset(SBlockData *pBlockData) {
pBlockData->suid = 0; pBlockData->suid = 0;
pBlockData->uid = 0; pBlockData->uid = 0;
pBlockData->nRow = 0; pBlockData->nRow = 0;
for (int32_t i = 0; i < pBlockData->nColData; i++) {
tColDataDestroy(&pBlockData->aColData[i]);
}
pBlockData->nColData = 0; pBlockData->nColData = 0;
taosMemoryFreeClear(pBlockData->aColData);
} }
void tBlockDataClear(SBlockData *pBlockData) { void tBlockDataClear(SBlockData *pBlockData) {