Merge pull request #238 from bbonev/fix-free-nonheap-object

Do not free a static string
This commit is contained in:
Boian Bonev 2022-10-03 14:36:17 +03:00 committed by GitHub
commit 99b0381c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -621,7 +621,7 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) {
if (update) {
char **files, **f;
_cleanup_free_ char *hwdb_bin = UDEV_HWDB_BIN;
_cleanup_free_ char *hwdb_bin = NULL;
trie = new0(struct trie, 1);
if (!trie) {