[systemd-devel] [PATCH] match: kdbus_match_entry_free fixed

Radoslaw Pajak r.pajak at samsung.com
Thu Feb 13 23:04:52 PST 2014


Signed-off-by: Radoslaw Pajak <r.pajak at samsung.com>
---
 match.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/match.c b/match.c
index d619bef..4c51327 100644
--- a/match.c
+++ b/match.c
@@ -121,6 +121,9 @@ static void kdbus_match_entry_free(struct kdbus_match_entry *entry)
 
 	list_for_each_entry_safe(r, tmp, &entry->rules_list, rules_entry)
 		kdbus_match_rule_free(r);
+
+	list_del(&entry->list_entry);
+	kfree(entry);
 }
 
 /**
-- 
1.7.9.5



More information about the systemd-devel mailing list