• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.6
    • rhel-9.5
    • quota
    • None
    • quota-4.09-4.el9
    • No
    • None
    • rhel-sst-filesystems
    • ssg_filesystems_storage_and_HA
    • 4
    • 8
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      Found by covscan.

      Error: RESOURCE_LEAK (CWE-772):
      quota-4.09/quotaio_xfs.c:162:2: alloc_fn: Storage is returned from allocation function "get_empty_dquot".
      quota-4.09/quotaio_xfs.c:162:2: var_assign: Assigning: "dquot" = storage returned from "get_empty_dquot()".
      quota-4.09/quotaio_xfs.c:180:4: leaked_storage: Variable "dquot" going out of scope leaks the storage it points to.
      #  178|   		 */
      #  179|   		if (errno != ENOENT) {
      #  180|-> 			return NULL;
      #  181|   		}
      #  182|   	}
      

       

              preichl@redhat.com Pavel Reichl
              preichl@redhat.com Pavel Reichl
              Pavel Reichl Pavel Reichl
              Boyang Xue Boyang Xue
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: