Procházet zdrojové kódy

HPCC-24832 Fix logical file read lock leak, when GetLogicalFileAttribute of protected is called

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith před 4 roky
rodič
revize
c49d4e2c0d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      plugins/fileservices/fileservices.cpp

+ 1 - 1
plugins/fileservices/fileservices.cpp

@@ -2670,7 +2670,7 @@ FILESERVICES_API char * FILESERVICES_CALL fsfGetLogicalFileAttribute(ICodeContex
             IPropertyTree &attr = df->queryAttributes();
             Owned<IPropertyTreeIterator> piter = attr.getElements("Protect");
             ForEach(*piter) {
-                const char *name = piter->get().queryProp("@name");
+                const char *name = piter->query().queryProp("@name");
                 if (name&&*name) {
                     if (ret.length())
                         ret.append(',');