diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-03 16:30:41 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-10 23:01:22 +0900 |
commit | 2480f53f21b21eb24a33815d4623f54fdb30cf27 (patch) | |
tree | 7fbbc164786ec2577b9098ed7eab31cfd0d7adb1 /scripts/mkuboot.sh | |
parent | f034d186bf9e2857079815e5490e2810a1a287a6 (diff) | |
download | linux-2480f53f21b21eb24a33815d4623f54fdb30cf27.tar.gz linux-2480f53f21b21eb24a33815d4623f54fdb30cf27.tar.bz2 linux-2480f53f21b21eb24a33815d4623f54fdb30cf27.zip |
genksyms: refactor the return points in the for-loop in __add_symbol()
free_list() must be called before returning from this for-loop.
Swap 'break' and the combination of free_list() and 'return'.
This reduces the code and minimizes the risk of introducing memory
leaks in future changes.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mkuboot.sh')
0 files changed, 0 insertions, 0 deletions