fixed memory leaks

This commit is contained in:
2022-10-24 15:59:01 +06:00
parent 4222c3ebf6
commit bbeb6bea1d
11 changed files with 50 additions and 6 deletions

View File

@@ -13,6 +13,9 @@ splitmix64_statePtr splitmix64_init(uint64 seed);
static inline splitmix64_statePtr splitmix64_initFromTime(void) { return splitmix64_init(time(NULL)); }
uint64 splitmix64_next(splitmix64_statePtr);
static inline void splitmix64_free(splitmix64_statePtr state) {
free(state);
}
#if __cplusplus
}