Skip to content
Snippets Groups Projects
Commit 4b29975f authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Heiko Schocher
Browse files

ubifs: no NULL check needed before free


kfree() calls free.
free() checks if the parameter is NULL.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent b6251db8
No related branches found
No related tags found
No related merge requests found
...@@ -462,14 +462,10 @@ out: ...@@ -462,14 +462,10 @@ out:
dbg_gen("cannot find next direntry, error %d", err); dbg_gen("cannot find next direntry, error %d", err);
out_free: out_free:
if (file->private_data) kfree(file->private_data);
kfree(file->private_data); free(file);
if (file) free(dentry);
free(file); free(dir);
if (dentry)
free(dentry);
if (dir)
free(dir);
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment