summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorHans de Goede <hansg@kernel.org>2025-06-08 22:40:10 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2025-06-22 02:08:44 +0200
commit6aa1c3a72b99abeb7ddc649047073d701ede2c91 (patch)
tree839daa972ff8c3b32f9420b03e5a48a9cc7054a3 /tools/perf/scripts/python/flamegraph.py
parent2986e5b213cd84ac290ae68e73b7629ec8f184a6 (diff)
power: supply: bq24190: Free battery_info
Call power_supply_put_battery_info() when bq24190_get_config() is done with it. The "struct power_supply_battery_info *info" pointer runs out of scope at the end of bq24190_get_config() so there is no need to keep it around after this. Note technically this is not a memleak fix, since all battery_info data is devm_alloc()-ed so it would still be free-ed when the driver is unbound. This just frees it as soon as the driver is done with it. Signed-off-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250608204010.37482-11-hansg@kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions