commit | 3b5dd45e947ecd21491e1658fba7bb4bc4a54995 | [log] [tgz] |
---|---|---|
author | Alex Chiang <achiang@hp.com> | Mon Dec 01 18:17:21 2008 -0700 |
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | Tue Dec 09 14:36:03 2008 -0800 |
tree | fc4180b27c193855a3324a11e29a5d0cd2aae405 | |
parent | 437f2f91d6597c67662f847d9ed4c99cb3c440cd [diff] |
PCI: stop leaking 'slot_name' in pci_create_slot In pci_create_slot(), the local variable 'slot_name' is allocated by make_slot_name(), but never freed. We never use it after passing it to the kobject core, so we should free it upon function exit. Cc: stable@kernel.org Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>