diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-09-17 10:58:37 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-09-25 08:41:07 +0200 |
commit | 9f93f18305f5777820491e6ab9b34422c160371b (patch) | |
tree | 7e5f76a0187abe5c4808420e8fa457f23739817f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | db8588f95cc5e4c9d134f7f4f939b1eade419560 (diff) |
gpio: sim: initialize a managed pointer when declaring it
Variables managed with __free() should typically be initialized where
they are declared so that the __free() callback is paired with its
counterpart resource allocator. Fix the second instance of using
__free() in gpio-sim to follow this pattern.
Fixes: 3faf89f27aab ("gpio: sim: simplify code with cleanup helpers")
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions