diff options
author | Xiaoming Ni | 2022-12-12 18:41:02 +0100 |
---|---|---|
committer | Denys Vlasenko | 2022-12-12 18:57:09 +0100 |
commit | ddccf6cd2f519c46a6286a43ceaf680eb367301c (patch) | |
tree | ce53166de2e8bc5fa2a9459dbc0e99bc970d2634 /scripts/echo.c | |
parent | 90456a6aa3a039ac1b16a09e64d13cc9589b55ee (diff) | |
download | busybox-ddccf6cd2f519c46a6286a43ceaf680eb367301c.zip busybox-ddccf6cd2f519c46a6286a43ceaf680eb367301c.tar.gz |
loop: refactor: extract subfunction get_next_free_loop()
Extract subfunction get_next_free_loop() from set_loop()
Also fix miss free(try) when stat(try) and mknod fail
function old new delta
set_loop 807 790 -17
Fixes: 3448914e8cc5 ("mount,losetup: use /dev/loop-control is it exists")
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/echo.c')
0 files changed, 0 insertions, 0 deletions