fix:memory leak
This commit is contained in:
parent
71df37a88b
commit
06f863fbad
|
@ -1448,6 +1448,7 @@ int taos_write_raw_block_with_fields(TAOS* taos, int rows, char* pData, const ch
|
|||
end:
|
||||
taosMemoryFreeClear(pTableMeta);
|
||||
qDestroyQuery(pQuery);
|
||||
destroyRequest(pRequest);
|
||||
taosMemoryFree(subReq);
|
||||
return code;
|
||||
}
|
||||
|
@ -1639,6 +1640,7 @@ int taos_write_raw_block(TAOS* taos, int rows, char* pData, const char* tbname)
|
|||
end:
|
||||
taosMemoryFreeClear(pTableMeta);
|
||||
qDestroyQuery(pQuery);
|
||||
destroyRequest(pRequest);
|
||||
taosMemoryFree(subReq);
|
||||
return code;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue