HomePhabricator

cext: stop worrying and love the free(NULL)

Authored by jeffpc.

Description

cext: stop worrying and love the free(NULL)

There is no need to check for a NULL pointer before calling free since
free(NULL) is defined by C standards as a no-op. Lots of software relies on
this behavior so it is completely safe to call even on the most obscure of
systems.

Details

Committed
jeffpcJun 13 2018, 10:37 AM
Parents
rHG6cc5d01a58a6: tests: fix test-patch.t on pickier /bin/sh implementations
Branches
Unknown
Tags
Unknown