[asterisk-commits] heap.c: No need to calloc heap pointer array. (asterisk[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 3 20:41:09 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6629 )
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 0f0bafd..b7d28ce 100644
--- a/main/heap.c
+++ b/main/heap.c
@@ -144,9 +144,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/6629
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
Gerrit-Change-Number: 6629
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/a087ed19/attachment.html>
More information about the asterisk-commits
mailing list