PHP-1071: Create Index test can segfault

There is no retval to cleanup when exception is thrown
Merge pull request #671 from bjori/broken-test

There is no retval to cleanup when exception is thrown

* bjori/broken-test:
  PHP-1071: Create Index test can segfault
Merge branch 'v1.5'

* v1.5:
  PHP-1071: Create Index test can segfault