Skip to content
Snippets Groups Projects
Commit a433bb38 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

heap.c: No need to calloc heap pointer array.

Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
parent b6d5e922
Branches
Tags
No related merge requests found
...@@ -146,9 +146,9 @@ struct ast_heap *ast_heap_create(unsigned int init_height, ast_heap_cmp_fn cmp_f ...@@ -146,9 +146,9 @@ struct ast_heap *ast_heap_create(unsigned int init_height, ast_heap_cmp_fn cmp_f
if (!(h->heap = if (!(h->heap =
#ifdef __AST_DEBUG_MALLOC #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 #else
ast_calloc(1, h->avail_len * sizeof(void *)) ast_malloc(h->avail_len * sizeof(void *))
#endif #endif
)) { )) {
ast_free(h); ast_free(h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment