Fixed bug #66584 Segmentation fault on statement deallocation
5.4.36-dev