diff options
author | 2016-03-10 14:36:28 -0600 | |
---|---|---|
committer | 2016-03-12 06:00:29 -0600 | |
commit | b562ec8f74e4edb532a53d26f0002d6fb4a6c79b (patch) | |
tree | 937dc632aa3aff0e824cd6575698ef7418ae47da /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | PCI: Simplify sysfs ROM cleanup (diff) | |
download | linux-dev-b562ec8f74e4edb532a53d26f0002d6fb4a6c79b.tar.xz linux-dev-b562ec8f74e4edb532a53d26f0002d6fb4a6c79b.zip |
PCI: Don't leak memory if sysfs_create_bin_file() fails
If sysfs_create_bin_file() fails, pci_create_attr() leaks the struct
bin_attribute it allocated previously.
Free the struct bin_attribute if pci_create_attr() fails.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions