]> granicus.if.org Git - graphviz/commit
use calloc instead of malloc;memset in zmalloc()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 2 Jun 2020 03:44:34 +0000 (20:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 22 Jun 2020 23:39:21 +0000 (16:39 -0700)
commitc488f6e3359155770df4e7edae05a98babaec710
tree1cd279189f81b1c7da425ac93a0ed93bc909b73f
parent43a37bedd934bde50a6441766b85dfc9648abda9
use calloc instead of malloc;memset in zmalloc()

This is more efficient for larger allocations, where the allocator can just
provide a zeroed page from the operating system.
lib/common/memory.c