summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-03-19 03:20:02 +0000
committerEric Fiselier <eric@efcs.ca>2015-03-19 03:20:02 +0000
commit61bff6192613038f721dccf52b0627b58354f9b0 (patch)
tree6a326f6ee6dd7e01dc01a36268b04070c1867efa /libcxx/src
parent0ddc6160ec135b31f2c4da87fcba8b3d9a37909a (diff)
downloadbcm5719-llvm-61bff6192613038f721dccf52b0627b58354f9b0.tar.gz
bcm5719-llvm-61bff6192613038f721dccf52b0627b58354f9b0.zip
Fix use after free and calls to operator comma in debug mode
llvm-svn: 232703
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/debug.cpp b/libcxx/src/debug.cpp
index 60694a3bdb0..b1a16e6e72d 100644
--- a/libcxx/src/debug.cpp
+++ b/libcxx/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);
}
}
}
OpenPOWER on IntegriCloud