Преглед на файлове

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;
         }
 
     }