From 64825d3c589cd8742887f30acde8c57eceac2001 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 8 Aug 2012 23:54:21 +0200 Subject: fix a couple of issues found with llvm-analyze --- src/libudev/libudev-list.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libudev/libudev-list.c') 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; -- cgit v1.2.3-54-g00ecf