projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure to set owner_line, ownder_func, and owner_file in ast_calloc_with_stringfields.
[asterisk/asterisk.git]
/
main
/
utils.c
diff --git
a/main/utils.c
b/main/utils.c
index
e900f7b
..
86dcb04
100644
(file)
--- a/
main/utils.c
+++ b/
main/utils.c
@@
-1792,6
+1792,11
@@
void *__ast_calloc_with_stringfields(unsigned int num_structs, size_t struct_siz
mgr->embedded_pool = pool;
*pool_head = pool;
pool->size = size_to_alloc - struct_size - sizeof(*pool);
+#if defined(__AST_DEBUG_MALLOC)
+ mgr->owner_file = file;
+ mgr->owner_func = func;
+ mgr->owner_line = lineno;
+#endif
}
return allocation;