Dataset not closed by gdaltindex when -skip_different_projection used
|Reported by:||Even Rouault||Owned by:||Even Rouault|
If -skip_different_projection is used and that a dataset has a different projection, it is not closed. This could cause problems if gdaltindex is run in directories with a lot of files. Minor memory leak also found.