]> granicus.if.org Git - graphviz/commit
pathplan: remove 'mymalloc' wrapper
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 16:21:45 +0000 (09:21 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 13:52:10 +0000 (06:52 -0700)
commit8f38bccc80c6d8c5666882ec89e6693ed6e70f31
tree1146f7a44224503c475969d0841c5a7b1fec24a0
parent018d285ad182cb8a77cb1594a3aff865ae20f5bf
pathplan: remove 'mymalloc' wrapper

The calling code does not rely on the semantics of `malloc` returning `NULL`
when called with a 0 size. It unconditionally frees these arrays in `Pobsclose`
so allocations returning a non-`NULL` pointer for 0-sized allocations (which
Glibc typically does) is fine. Maintaining a wrapper that enforces this is
unnecessary.
lib/pathplan/cvt.c