]> granicus.if.org Git - graphviz/commit
replace agxbuse/alloc pattern with agxbdisown
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Aug 2020 20:30:48 +0000 (13:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 20 Aug 2020 14:40:31 +0000 (07:40 -0700)
commit18eed4fb5b151b0be7d8934203b58ffccc7d0b94
treebb4ec65071d90c0bac9ad292d6e1e5dd99245d19
parent1d62dedf83b2a3a06c6e0d1783e37656f451931c
replace agxbuse/alloc pattern with agxbdisown

Instead of retrieving the contents of a (possibly dynamically allocated) buffer
and then allocating new space for a copy, we can simply take ownership of the
original buffer. This saves an extra unnecessary allocation.
cmd/smyrna/gui/menucallbacks.c
lib/common/htmlparse.y
lib/common/utils.c
plugin/pango/gvgetfontlist_pango.c