Fixed bug #66584 Segmentation fault on statement deallocation