Introduce udev object cleanup functions
This commit is contained in:
@@ -44,10 +44,8 @@ typedef struct {
|
||||
Hashmap *have_installed;
|
||||
} InstallContext;
|
||||
|
||||
#define _cleanup_lookup_paths_free_ \
|
||||
__attribute__((cleanup(lookup_paths_free)))
|
||||
#define _cleanup_install_context_done_ \
|
||||
__attribute__((cleanup(install_context_done)))
|
||||
#define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)
|
||||
#define _cleanup_install_context_done_ _cleanup_(install_context_done)
|
||||
|
||||
static int lookup_paths_init_from_scope(LookupPaths *paths, UnitFileScope scope) {
|
||||
assert(paths);
|
||||
|
||||
Reference in New Issue
Block a user