Fix memory/resource leaks on tree_file_open() failure
Fix memory/resource leaks on tree_file_open() failure

Change-Id: I72fc39057458fad80471630d6f772688a95c0e3a
Reviewed-on: http://review.couchbase.org/28630
Reviewed-by: Aaron Miller <41fcc51335f382e0855796cc35dd33f571f2d8f7@ninjawhale.com>
Reviewed-by: Volker Mische <fb414f8ac0dbbf87663550ae4ef5fc95b1041941@gmail.com>
Tested-by: Filipe David Borba Manana <e0fcd583df77ec6c08e6d1257619cc1216ddc994@gmail.com>

t3rm1n4l/couchstore,t3rm1n4l/couchstore,couchbaselabs/couchstore,jimwwalker/couchstore,t3rm1n4l/couchstore,abhinavdangeti/couchstore,couchbaselabs/couchstore,vmx/couchstore,vmx/couchstore,jimwwalker/couchstore,jimwwalker/couchstore,vmx/couchstore,couchbaselabs/couchstore,abhinavdangeti/couchstore,abhinavdangeti/couchstore