TRQ-1730 needed to set a pointer to NULL after freeing it.
Merge branch '4.1-dev' of https://github.com/adaptivecomputing/torque into 4.1-dev