Update shm.cpp

This commit is contained in:
木头云 2019-03-28 17:08:32 +08:00 committed by GitHub
parent 89c4b1ce2a
commit 1c32826aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ bool handle::acquire(char const * name, std::size_t size, unsigned mode) {
}
void handle::release() {
if (impl(p_)->id_ == nullptr) return;
shm::release(detach());
}