提交 bd1c8e19 编写于 作者: H Hongze Cheng

fix more code

上级 01bacc10
...@@ -13,6 +13,7 @@ ...@@ -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) { ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册