chiark / gitweb /
fix a couple of issues found with llvm-analyze
[elogind.git] / src / libudev / libudev-list.c
index aec334bcfc52875b25a622ec27b7f33a7241c2e6..5d09b5d2d9ffd855ce74f466e67801886db6cd60 100644 (file)
@@ -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;