diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-03-19 03:20:02 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-03-19 03:20:02 +0000 |
commit | 537876b98e3cc290c43843f76979f4cee8d4a35b (patch) | |
tree | eb7d2c4622d22e16d634f3e4d29b7dbc365df64d /src/debug.cpp | |
parent | 71aa376ede71132b3dc57526689869b47d2e857b (diff) | |
download | external_libcxx-537876b98e3cc290c43843f76979f4cee8d4a35b.tar.gz external_libcxx-537876b98e3cc290c43843f76979f4cee8d4a35b.tar.bz2 external_libcxx-537876b98e3cc290c43843f76979f4cee8d4a35b.zip |
Fix use after free and calls to operator comma in debug mode
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@232703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 60694a3bd..b1a16e6e7 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -214,10 +214,10 @@ __libcpp_db::__erase_i(void* __i) else q->__next_ = p->__next_; __c_node* c = p->__c_; - free(p); --__isz_; if (c != nullptr) c->__remove(p); + free(p); } } } |