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:49:50 -0500 |
commit | 80097676e77d557bca703a9ceee4bd54a7e689de (patch) | |
tree | a435ed11fe772d194fa628ac328cf4a9a149c447 /main/heap.c | |
parent | 5307659e96d62679dd46c82ac28feeb6785ef205 (diff) |
heap.c: No need to calloc heap pointer array.
Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Diffstat (limited to 'main/heap.c')
-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 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); |