Fix extfs fsmarshall symlink error case.
This commit is contained in:
parent
0da44df5ce
commit
7953023517
|
@ -536,6 +536,7 @@ void HandleSymlink(int chl, struct fsm_req_symlink* msg, Filesystem* fs)
|
||||||
char* path = (char*) malloc(msg->namelen + 1);
|
char* path = (char*) malloc(msg->namelen + 1);
|
||||||
if ( !path )
|
if ( !path )
|
||||||
{
|
{
|
||||||
|
free(dest);
|
||||||
RespondError(chl, errno);
|
RespondError(chl, errno);
|
||||||
inode->Unref();
|
inode->Unref();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue