summaryrefslogtreecommitdiff
path: root/contrib/libc++/src/debug.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-09-16 22:26:52 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-09-16 22:26:52 +0000
commit854fa44b6f7a32ff94c2a705691da6d3b703574a (patch)
treeaaccdba1a8c990ea730287a164e76e70733b424a /contrib/libc++/src/debug.cpp
parent0e1e5c22c20e636264ff1284083c6af7a1b282cb (diff)
parent61b9a7258a7693d7f3674a5a1daf7b036ff1d382 (diff)
Notes
Diffstat (limited to 'contrib/libc++/src/debug.cpp')
-rw-r--r--contrib/libc++/src/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libc++/src/debug.cpp b/contrib/libc++/src/debug.cpp
index 60694a3bdb0e..b1a16e6e72d4 100644
--- a/contrib/libc++/src/debug.cpp
+++ b/contrib/libc++/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);
}
}
}