diff options
author | Rob Herring <[email protected]> | 2024-04-09 13:59:40 -0500 |
---|---|---|
committer | Rob Herring <[email protected]> | 2024-04-15 08:40:40 -0500 |
commit | 40b0f17453fca50165c9d56401be663448e9136c (patch) | |
tree | c3ba7211c1177690af02673aeffdee10f66dca9e /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 1c5e3d9bf33b811e1c6dd9081b322004acc4a1fd (diff) |
of: Use scope based kfree() cleanups
Use the relatively new scope based kfree() cleanup to simplify error
handling. Doing so reduces the chances of memory leaks and simplifies
error paths by avoiding the need for goto statements.
Reviewed-by: Saravana Kannan <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions