boostorg / interprocess

Boost.org interprocess module
http://boost.org/libs/interprocess
132 stars 117 forks source link

remove redundent assertion alignment check to avoid exiting the function without releasing scoped mutex #178

Closed lioriz closed 2 years ago

lioriz commented 2 years ago

The assertion in the check_sanity() function causes the function to crash without releasing the shared mutex. The assertion is redundant due to alignment check in the following lines that returns false in case of failure and releases the shared mutex. PR for Issue 177