diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-03 20:36:59 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-03 20:36:59 -0500 |
commit | c47a8c22e761a06c2231c73b9bd57a0b7049d8dd (patch) | |
tree | 15af17391fe3694d94ff63ad6bd46839364d42cf | |
parent | af288f5eff780d1d2d35c6973e66954c6f69c6d2 (diff) | |
parent | ade7253c9db0df50aaf6cb82e11805ad73137a66 (diff) |
Merge "heap.c: No need to calloc heap pointer array." into 15
-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); |