summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-10-03 20:37:39 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-10-03 20:37:39 -0500
commit752d55f7193c1f36ceabacbf2307eb4f84571762 (patch)
tree1734cd486617ee7dca37485f4f5c21accfaa60be
parent4fdc39bcfb98bbe54ade3d9692a7147bfe38d251 (diff)
parent37935c79f66be9946a32b8080d75c8d545d7129b (diff)
Merge "heap.c: No need to calloc heap pointer array." into 14
-rw-r--r--main/heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/heap.c b/main/heap.c
index 73280fedc..45c16a517 100644
--- a/main/heap.c
+++ b/main/heap.c
@@ -146,9 +146,9 @@ struct ast_heap *ast_heap_create(unsigned int init_height, ast_heap_cmp_fn cmp_f
if (!(h->heap =
#ifdef __AST_DEBUG_MALLOC
- __ast_calloc(1, h->avail_len * sizeof(void *), file, lineno, func)
+ __ast_malloc(h->avail_len * sizeof(void *), file, lineno, func)
#else
- ast_calloc(1, h->avail_len * sizeof(void *))
+ ast_malloc(h->avail_len * sizeof(void *))
#endif
)) {
ast_free(h);