Use this function to delete the SQLPathExpression that you have created by calling the cniSqlCreateReadOnlyPathExpression or the cniSqlCreateModifiablePathExpression utility functions, as defined by the sqlPathExpression argument.
void cniSqlDeletePathExpression(
int* returnCode,
CciSqlPathExpression* sqlPathExpression );
Expanding on the example for cniSqlCreateReadOnlyPathExpression, include the following code in _deleteNodeContext.
cniSqlDeletePathExpression(
NULL,
((NODE_CONTEXT_ST *)context)->pathExpression);