Merge pull request #268 from clearr/fix-index-leaks

Fix memory leaks in NewIndex() and OpenIndex()