mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Fixed a dangling pointer post-free. Marcos uncovered this issue
when using netcdf on linux via JNI.
This commit is contained in:
parent
0803ba20ba
commit
027e503c3e
@ -48,6 +48,7 @@ free_NC(NC *ncp)
|
||||
#else
|
||||
free(ncp);
|
||||
#endif /* _CRAYMPP && LOCKNUMREC */
|
||||
ncp = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user