nfs4: Fix FileInfo operator= memory leak

This commit is contained in:
Pawel Dziepak 2012-06-05 20:41:19 +02:00
parent 96b7b14a96
commit 8d513ebcb5

View File

@ -101,6 +101,8 @@ FileInfo::operator=(const FileInfo& fi)
{
fFH = fi.fFH;
fParent = fi.fParent;
free(const_cast<char*>(fName));
fName = strdup(fi.fName);
return *this;
}