[PATCH] Segfault when exiting with open HDF dataset
|Reported by:||kikht||Owned by:||warmerdam|
Attached test program fails with segfault on
It happens because HDF library sets it's own cleanup procecure via
atexit. It is called before GDALDriverManager destructor which tries to close opened hdf file again, leading to segfault.
Provided patch disables HDF cleanup procedure by calling
HDdont_atexit() on driver initialization.