mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	heap.c: No need to calloc heap pointer array.
Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68
This commit is contained in:
		| @@ -146,9 +146,9 @@ struct ast_heap *ast_heap_create(unsigned int init_height, ast_heap_cmp_fn cmp_f | ||||
|  | ||||
| 	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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user