Avoid NULL dereference
This commit is contained in:
parent
e06f3469e0
commit
6e427123e2
@ -1256,7 +1256,9 @@ nfs_open(const char *upath, struct open_file *f)
|
||||
error = 0;
|
||||
|
||||
out:
|
||||
if (newfd)
|
||||
free(newfd);
|
||||
if (path)
|
||||
free(path);
|
||||
#else
|
||||
currfd->iodesc = desc;
|
||||
|
Loading…
Reference in New Issue
Block a user