Coverity CID 134632: acpi_hw_build_pci_list() memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Coverity complains that acpi_hw_build_pci_list() leaks memory when it
returns here:

201                if (!list_element) {

CID 134632 (#1 of 2): Resource leak (RESOURCE_LEAK)
13. leaked_storage: Variable list_head going out of scope leaks the
storage it points to.
202                        return (AE_NO_MEMORY);
203                }

We're building up a list, and if we fail to allocate another element,
we return failure without deallocating the already built-up list.

This is CID 134632.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux