nfs4: Fix FileInfo operator= memory leak
This commit is contained in:
@@ -101,6 +101,8 @@ FileInfo::operator=(const FileInfo& fi)
|
|||||||
{
|
{
|
||||||
fFH = fi.fFH;
|
fFH = fi.fFH;
|
||||||
fParent = fi.fParent;
|
fParent = fi.fParent;
|
||||||
|
|
||||||
|
free(const_cast<char*>(fName));
|
||||||
fName = strdup(fi.fName);
|
fName = strdup(fi.fName);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user