Systemd/coccinelle
Zbigniew Jędrzejewski-Szmek 3b319885c4 tree-wide: introduce free_and_replace helper
It's a common pattern, so add a helper for it. A macro is necessary
because a function that takes a pointer to a pointer would be type specific,
similarly to cleanup functions. Seems better to use a macro.
2016-10-16 23:35:39 -04:00
..
empty-if.cocci
errno.cocci
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
mfree.cocci
mfree_return.cocci
no-if-assignments.cocci
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
strempty.cocci
strjoina.cocci
strv_free.cocci
while-true.cocci
xsprintf.cocci