Skip to content
Snippets Groups Projects
Commit 6a9a22f3 authored by Mark Michelson's avatar Mark Michelson
Browse files

Add the same fix from revision 123271 to container_destruct_debug.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bb20ef70
Branches
Tags
No related merge requests found
...@@ -828,9 +828,18 @@ static void container_destruct(void *_c) ...@@ -828,9 +828,18 @@ static void container_destruct(void *_c)
static void container_destruct_debug(void *_c) static void container_destruct_debug(void *_c)
{ {
struct ao2_container *c = _c; struct ao2_container *c = _c;
int i;
_ao2_callback_debug(c, OBJ_UNLINK, cd_cb_debug, NULL, "container_destruct_debug called", __FILE__, __LINE__, __PRETTY_FUNCTION__); _ao2_callback_debug(c, OBJ_UNLINK, cd_cb_debug, NULL, "container_destruct_debug called", __FILE__, __LINE__, __PRETTY_FUNCTION__);
for (i = 0; i < c->n_buckets; i++) {
struct bucket_list *cur;
while ((cur = AST_LIST_REMOVE_HEAD(&c->buckets[i], entry))) {
ast_free(cur);
}
}
#ifdef AO2_DEBUG #ifdef AO2_DEBUG
ast_atomic_fetchadd_int(&ao2.total_containers, -1); ast_atomic_fetchadd_int(&ao2.total_containers, -1);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment