Revert r240850 and remove redundant NULL check before free(3).

free(3) handles NULL parameter fine.

Reviewed by:	kib, Garrett Cooper
This commit is contained in:
Kevin Lo 2012-09-24 05:24:10 +00:00
parent c148237d44
commit b7b6a643aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240881

View file

@ -606,10 +606,8 @@ nfs_open(const char *upath, struct open_file *f)
error = 0;
out:
if (newfd)
free(newfd);
if (path)
free(path);
free(newfd);
free(path);
#else
currfd->iodesc = desc;
@ -1256,10 +1254,8 @@ nfs_open(const char *upath, struct open_file *f)
error = 0;
out:
if (newfd)
free(newfd);
if (path)
free(path);
free(newfd);
free(path);
#else
currfd->iodesc = desc;