Sfoglia il codice sorgente

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 4 anni fa
parent
commit
c49d4e2c0d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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(',');