macro: check existence of cleanup function before call it
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Dec 2022 12:07:39 +0000 (21:07 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Dec 2022 09:59:26 +0000 (10:59 +0100)
commit9c29d87beebf3a4d60639977494add18c45acba6
tree581eec4ca36f81823d2c0886b078e2ef28833d90
parent80ce8580f5aa6b03fa13a0b3b30207bc9b5c5fe0
macro: check existence of cleanup function before call it

The free function specified in the macro may be provided by a
dynamically loaded library.

Replaces #25781.
src/basic/macro.h