From 7953023517ac974072ca62fb397643381f5bde6c Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 9 Jul 2015 18:24:13 +0200 Subject: [PATCH] Fix extfs fsmarshall symlink error case. --- ext/fsmarshall.cpp | 1 + 1 file changed, 1 insertion(+) 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;