diff options
Diffstat (limited to 'src/libudev/libudev-list.c')
-rw-r--r-- | src/libudev/libudev-list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libudev/libudev-list.c b/src/libudev/libudev-list.c index aec334bcfc..5d09b5d2d9 100644 --- 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; |