[Asterisk-code-review] heap.c: No need to calloc heap pointer array. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Sep 28 15:48:51 CDT 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/6626


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

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

Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
---
M main/heap.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/6626/1

diff --git a/main/heap.c b/main/heap.c
index d40682a..c048565 100644
--- a/main/heap.c
+++ b/main/heap.c
@@ -146,9 +146,9 @@
 
 	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);

-- 
To view, visit https://gerrit.asterisk.org/6626
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Gerrit-Change-Number: 6626
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170928/211ca7ca/attachment.html>


More information about the asterisk-code-review mailing list