1 From: John Johansen <jrjohansen@verizon.net>
2 Subject: [PATCH] AppArmor: Fix leak of filename for deleted files
4 This patch fixes a memory leak where the name doesn't get freed when
5 a file has been deleted.
7 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
9 security/apparmor/main.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 --- a/security/apparmor/main.c
13 +++ b/security/apparmor/main.c
14 @@ -500,10 +500,10 @@ static char *aa_get_name(struct dentry *
19 if (PTR_ERR(name) != -ENAMETOOLONG)
24 if (size > apparmor_path_max)
25 return ERR_PTR(-ENAMETOOLONG);