fix: free ScalarParam

This commit is contained in:
xsren 2024-08-27 19:17:31 +08:00
parent 7a28dffa34
commit ef5c1b28f9
1 changed files with 4 additions and 2 deletions

View File

@ -74,15 +74,17 @@ int32_t sclConvertValueToSclParam(SValueNode *pValueNode, SScalarParam *out, int
code = colDataSetVal(in.columnData, 0, nodesGetValueFromNode(pValueNode), false);
if (code != TSDB_CODE_SUCCESS) {
return code;
goto _exit;
}
code = colInfoDataEnsureCapacity(out->columnData, 1, true);
if (code != TSDB_CODE_SUCCESS) {
return code;
goto _exit;
}
code = vectorConvertSingleColImpl(&in, out, overflow, -1, -1);
_exit:
sclFreeParam(&in);
return code;