diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-09-21 14:43:09 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-09-28 15:47:55 -0500 |
commit | a433bb38b5a26078697d8458aa24cd3bb924905d (patch) | |
tree | 18b9bdfb9a41bce7252f5fc2749c7159e2a7bd9f /main | |
parent | b6d5e9223ce35befb69ca1bc2a0e016e1542bf46 (diff) |
heap.c: No need to calloc heap pointer array.
Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Diffstat (limited to 'main')
-rw-r--r-- | main/heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/heap.c b/main/heap.c index d40682af0..c0485652b 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); |