Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ddfd1f04
Commit
ddfd1f04
authored
Nov 23, 2009
by
Joern Engel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LogFS] Plug memory leak on error paths
Spotted by Dan Carpenter.
parent
ef6ada3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fs/logfs/dir.c
fs/logfs/dir.c
+6
-2
No files found.
fs/logfs/dir.c
View file @
ddfd1f04
...
...
@@ -224,10 +224,14 @@ static int logfs_unlink(struct inode *dir, struct dentry *dentry)
inode
->
i_ctime
=
dir
->
i_ctime
=
dir
->
i_mtime
=
CURRENT_TIME
;
page
=
logfs_get_dd_page
(
dir
,
dentry
);
if
(
!
page
)
if
(
!
page
)
{
kfree
(
ta
);
return
-
ENOENT
;
if
(
IS_ERR
(
page
))
}
if
(
IS_ERR
(
page
))
{
kfree
(
ta
);
return
PTR_ERR
(
page
);
}
index
=
page
->
index
;
page_cache_release
(
page
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment