Prechádzať zdrojové kódy

HPCC-18746 Release exception on handling in setFilePermissions

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 7 rokov pred
rodič
commit
1e21aadc49
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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;
         }
 
     }