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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 3 20:25:06 CDT 2017


Jenkins2 has submitted this change and it was merged. ( 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(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



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: merged
Gerrit-Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Gerrit-Change-Number: 6626
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20171003/e83057ce/attachment-0001.html>


More information about the asterisk-commits mailing list