mat.c (Mat_Open): Fixed bug reported by Wouter Depuydt where file was left open when it was not a valid MAT file or MAT version 5 file if not in version 4 mode.
mat.c (Mat_Open): Fixed bug reported by Wouter Depuydt where file was left open when it was not a valid MAT file or MAT version 5 file if not in version 4 mode.

MaartenBent/matio,CBL-ORION/matio,MaartenBent/matio,MaartenBent/matio,tbeu/matio,tbeu/matio,telehan/libmatio,NJannasch/matio,NJannasch/matio,tbeu/matio,martinichka/matio-coder,martinichka/matio-coder,CBL-ORION/matio-sf-mirror,CBL-ORION/matio-sf-mirror,CBL-ORION/matio,telehan/libmatio,tbeu/matio,MaartenBent/matio,martinichka/matio-coder