Fixed memory leaks
Merge branch 'PHP-5.5'

* PHP-5.5:
  Fixed memory leaks