chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journalctl: move access check before the first access to the journal files
[elogind.git]
/
src
/
libudev
/
libudev-list.c
diff --git
a/src/libudev/libudev-list.c
b/src/libudev/libudev-list.c
index aec334bcfc52875b25a622ec27b7f33a7241c2e6..5d09b5d2d9ffd855ce74f466e67801886db6cd60 100644
(file)
--- a/
src/libudev/libudev-list.c
+++ b/
src/libudev/libudev-list.c
@@
-186,6
+186,7
@@
struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *
if (list->entries == NULL) {
free(entry->name);
free(entry->value);
+ free(entry);
return NULL;
}
list->entries_max += add;