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

Richard Mudgett asteriskteam at digium.com
Thu Sep 28 15:49:21 CDT 2017


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


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/27/6627/1

diff --git a/main/heap.c b/main/heap.c
index 73280fe..45c16a5 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/6627
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Gerrit-Change-Number: 6627
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/164114e0/attachment-0001.html>


More information about the asterisk-code-review mailing list