mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
nfs4: Fix FileInfo operator= memory leak
This commit is contained in:
parent
96b7b14a96
commit
8d513ebcb5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user