Skip to content

Commit

Permalink
Merge pull request #238 from bbonev/fix-free-nonheap-object
Browse files Browse the repository at this point in the history
Do not free a static string
  • Loading branch information
bbonev authored Oct 3, 2022
2 parents bebf651 + 1c10b23 commit 99b0381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udev/udevadm-hwdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 99b0381

Please sign in to comment.