trq-2152 reallocated a freed pointer to prevent a double free.