mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
Merge pull request #238 from bbonev/fix-free-nonheap-object
Do not free a static string
This commit is contained in:
commit
99b0381c85
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user