between 305-330 data could be potentially deleted by another thread, and calling thread would get NULL.
Looks okay, please push! :)
The patch has been pushed in a879aa5107955ef1ee260ec5468a42b5965eb59d