From 92ab29e3d55df775f666d0b3d03fecee3a032621 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sat, 30 Sep 2023 23:40:24 +0200 Subject: [PATCH] fixup! Dynamically get the udevadm hwdb files with a path variable --- src/udev/udevadm-hwdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c index 4906eb6e6..624e6b405 100644 --- a/src/udev/udevadm-hwdb.c +++ b/src/udev/udevadm-hwdb.c @@ -688,14 +688,13 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) { } trie->nodes_count++; - char *conf_file_path = list_conf_file_path (); + _cleanup_free_ char *conf_file_path = list_conf_file_path (); if (conf_file_path == NULL) { rc = EXIT_FAILURE; goto out; } err = conf_files_list_strv_path(&files, ".hwdb", root, conf_file_path); - free (conf_file_path); if (err < 0) { log_error_errno(err, "failed to enumerate hwdb files: %m"); rc = EXIT_FAILURE;