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
|
#else
|
||||||
free(ncp);
|
free(ncp);
|
||||||
#endif /* _CRAYMPP && LOCKNUMREC */
|
#endif /* _CRAYMPP && LOCKNUMREC */
|
||||||
|
ncp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user