summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-07-11 09:37:36 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-07-11 09:37:36 -0400
commit87b69cb04556d5dacae2eb1a9f2122ce5f6a4620 (patch)
tree0873f65711ab93344afab5ab2f0a1f0170c4fb48 /src/udev
parent1fdae2bccb230be7223634d370e940ba5b4be011 (diff)
src/udev/udevadm-hwdb.c: fix double freeeudev/v1.1
clang is stupid and I will never blindly trust it again. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-hwdb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c
index f5fd7e21f2..8f5b1cb7a1 100644
--- a/src/udev/udevadm-hwdb.c
+++ b/src/udev/udevadm-hwdb.c
@@ -207,7 +207,6 @@ static int trie_insert(struct trie *trie, struct trie_node *node, const char *se
return -ENOMEM;
off = strbuf_add_string(trie->strings, s, p);
- free(s); /* fix clang-reported potential memleak */
if (off < 0)
return off;