浏览代码

HPCC-18746 Release exception on handling in setFilePermissions

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 7 年之前
父节点
当前提交
1e21aadc49
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      common/remote/sockfile.cpp

+ 4 - 1
common/remote/sockfile.cpp

@@ -1962,9 +1962,12 @@ public:
         catch (IDAFS_Exception *e)
         {
             if (e->errorCode() == RFSERR_InvalidCommand)
+            {
                 WARNLOG("umask setFilePermissions (0%o) not supported on remote server", fPerms);
+                e->Release();
+            }
             else
-                throw e;
+                throw;
         }
 
     }