mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Added fencepost for cross-dll memory freeing in Windows/Visual Studio
This commit is contained in:
parent
2d72b7ca7f
commit
dd2318b725
@ -1281,7 +1281,11 @@ read_type(NC_GRP_INFO_T *grp, hid_t hdf_typeid, char *type_name)
|
||||
|
||||
#ifndef JNA
|
||||
/* Free the member name (which HDF5 allocated for us). */
|
||||
/* On Windows using the microsoft runtime, it is an error
|
||||
for one library to free memory allocated by a different library. */
|
||||
#ifndef _MSC_VER
|
||||
if(member_name != NULL) free(member_name);
|
||||
#endif
|
||||
#endif
|
||||
member_name = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user