From 87b69cb04556d5dacae2eb1a9f2122ce5f6a4620 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 11 Jul 2013 09:37:36 -0400 Subject: src/udev/udevadm-hwdb.c: fix double free clang is stupid and I will never blindly trust it again. Signed-off-by: Anthony G. Basile --- src/udev/udevadm-hwdb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c index f5fd7e21f..8f5b1cb7a 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; -- cgit v1.2.3-65-gdbad