| commit | 537876b98e3cc290c43843f76979f4cee8d4a35b | [log] [tgz] |
|---|---|---|
| author | Eric Fiselier <eric@efcs.ca> | Thu Mar 19 03:20:02 2015 +0000 |
| committer | Eric Fiselier <eric@efcs.ca> | Thu Mar 19 03:20:02 2015 +0000 |
| tree | eb7d2c4622d22e16d634f3e4d29b7dbc365df64d | |
| parent | 71aa376ede71132b3dc57526689869b47d2e857b [diff] [blame] |
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
diff --git a/src/debug.cpp b/src/debug.cpp index 60694a3..b1a16e6 100644 --- a/src/debug.cpp +++ b/src/debug.cpp
@@ -214,10 +214,10 @@ else q->__next_ = p->__next_; __c_node* c = p->__c_; - free(p); --__isz_; if (c != nullptr) c->__remove(p); + free(p); } } }