diff options
author | imp <imp@FreeBSD.org> | 2001-02-08 21:47:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-02-08 21:47:45 +0000 |
commit | a6bc5c2d11b59b9211c7a7f14e1fd7b44e508c13 (patch) | |
tree | e7773cab350aa5370237f3bb4497e7e3d7e0aa43 /sys/dev | |
parent | 550de2dad0cb596e70978f8f0be3690229571699 (diff) | |
download | FreeBSD-src-a6bc5c2d11b59b9211c7a7f14e1fd7b44e508c13.zip FreeBSD-src-a6bc5c2d11b59b9211c7a7f14e1fd7b44e508c13.tar.gz |
Fix memory leaks with dev_get_children().
Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cardbus/cardbus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index 22f2a4c..f9527b9 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -255,6 +255,7 @@ cardbus_detach_card(device_t dev, int flags) DEVPRINTF((dev, "Detaching card: no cards to detach!\n")); POWER_DISABLE_SOCKET(device_get_parent(dev), dev); } + free(devlist, M_TEMP); return ENOENT; } @@ -278,6 +279,7 @@ cardbus_detach_card(device_t dev, int flags) } if (err == 0) POWER_DISABLE_SOCKET(device_get_parent(dev), dev); + free(devlist, M_TEMP); return err; } @@ -317,6 +319,7 @@ cardbus_driver_added(device_t dev, driver_t *driver) if (cardattached == 0) POWER_DISABLE_SOCKET(bdev, dev); + free(devlist, M_TEMP); } /************************************************************************/ |