summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-09-21 14:43:09 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-09-28 15:49:34 -0500
commitade7253c9db0df50aaf6cb82e11805ad73137a66 (patch)
tree8542ad9a93e10762747cda53c6654e9156052292
parentb4e511c41b26933ea9d3f0d487765f7a02e619a9 (diff)
heap.c: No need to calloc heap pointer array.
Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
-rw-r--r--main/heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/heap.c b/main/heap.c
index 0f0bafd18..b7d28ce2f 100644
--- a/main/heap.c
+++ b/main/heap.c
@@ -144,9 +144,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);