mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Subject: parser - fix dbus peer_conds memory leak in new_dbus_entry()
The function new_dbus_entry() free()s the conds argument but not the peer_conds argument. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:
@@ -138,6 +138,7 @@ struct dbus_entry *new_dbus_entry(int mode, struct cond_entry *conds,
|
||||
|
||||
out:
|
||||
free_cond_list(conds);
|
||||
free_cond_list(peer_conds);
|
||||
return ent;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user