mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46:45 +08:00
fix: unexpected crash
An unexpected crash caused by an unconnected exit.
This commit is contained in:
parent
df3cf1b4c4
commit
d80bea9b5d
@ -94,6 +94,7 @@ inline void free(void* p, std::size_t size) {
|
||||
|
||||
template <typename T>
|
||||
void free(T* p) {
|
||||
if (p == nullptr) return;
|
||||
destruct(p);
|
||||
pool_alloc::free(p, sizeof(T));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user