|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56870 - sandbox/stm/branches/vbe/boost/stm
From: vicente.botet_at_[hidden]
Date: 2009-10-15 11:45:32
Author: viboes
Date: 2009-10-15 11:45:31 EDT (Thu, 15 Oct 2009)
New Revision: 56870
URL: http://svn.boost.org/trac/boost/changeset/56870
Log:
TBoost.STM vbe:
* Ensuring ptr!=0 before deallocating it.
Text files modified:
sandbox/stm/branches/vbe/boost/stm/transaction.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: sandbox/stm/branches/vbe/boost/stm/transaction.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/stm/transaction.hpp (original)
+++ sandbox/stm/branches/vbe/boost/stm/transaction.hpp 2009-10-15 11:45:31 EDT (Thu, 15 Oct 2009)
@@ -2091,6 +2091,7 @@
#endif //BOOST_STM_NO_PARTIAL_SPECIALIZATION
inline void cache_release(base_transaction_object* ptr) {
+ if (ptr==0) return ;
ptr->cache_deallocate();
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk