Skip to content

Commit

Permalink
bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove()
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Oct 6, 2010
1 parent fe3f6d0 commit 9292585
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/bq27x00_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)

power_supply_unregister(&di->bat);

kfree(di->bus);
kfree(di->bat.name);

mutex_lock(&battery_mutex);
Expand Down

0 comments on commit 9292585

Please sign in to comment.