diff --git a/ext/fsmarshall.cpp b/ext/fsmarshall.cpp index 48e257e1..69c317a8 100644 --- a/ext/fsmarshall.cpp +++ b/ext/fsmarshall.cpp @@ -536,6 +536,7 @@ void HandleSymlink(int chl, struct fsm_req_symlink* msg, Filesystem* fs) char* path = (char*) malloc(msg->namelen + 1); if ( !path ) { + free(dest); RespondError(chl, errno); inode->Unref(); return;