Repository navigation
Commit f58b59c
swapfile: fix name leak in swapoff
There's a name leak introduced by commit 91a27b2 ("vfs: define
struct filename and have getname() return it"). Add the missing
putname.
[akpm@linux-foundation.org: cleanup]
Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent bea8c15 commit f58b59c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
1498 | 1497 | | |
1499 | | - | |
| 1498 | + | |
1500 | 1499 | | |
1501 | 1500 | | |
1502 | 1501 | | |
| |||
1608 | 1607 | | |
1609 | 1608 | | |
1610 | 1609 | | |
| 1610 | + | |
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
| |||
0 commit comments