1153: for (int i = 1; i <= aParamCount; i++)
1154: {
1155: // TokenToVariant() in "arg" mode never calls AddRef() or SafeArrayCopy(), so the arg needs to be freed
1156: // only if it is a BSTR and not one which came from a ComObject wrapper (such as ComObject(9, pbstr)).
1157: if (rgvarg[i].vt == VT_BSTR && aParam[aParamCount-i]->symbol != SYM_OBJECT)
1158: SysFreeString(rgvarg[i-1].bstrVal); // <<<
1159: }