summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-07-30 13:46:21 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-07-30 13:46:21 -0400
commit38382ffbd6bca77680042f967fa8fc5a560fae07 (patch)
tree47200f07dd854fb6694d745b5d72941a2e77f18e /src/udev
parentf6571c3d6454c43956ca243d92d0229ed5a07d8d (diff)
Bring collect.c and udevadm-hwdb.c in line with upstream
This brings these two files in line with upstream's commit: ef89eef77ee098a6828169a6d0d74128e236bcbd udev: fix two trivial memleaks in error path Based-on-a-patch-by: Ian Stakenvicius <axs@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-hwdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c
index 8f5b1cb7a1..aa590d550f 100644
--- a/src/udev/udevadm-hwdb.c
+++ b/src/udev/udevadm-hwdb.c
@@ -304,7 +304,7 @@ static int64_t trie_store_nodes(struct trie_f *trie, struct trie_node *node) {
child_off = trie_store_nodes(trie, node->children[i].child);
if (child_off < 0) {
- free(children); /* clang reported memleak , children is thrown away if this fails */
+ free(children);
return child_off;
}
children[i].c = node->children[i].c;