Fix file descriptor leaks on arm Android
* exec/loader-aarch64.s (_start): * exec/loader-armeabi.s (_start): Fix thinko. Do not merge to master.
This commit is contained in:
parent
22b646efe3
commit
74e25c9413
2 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ _start:
|
|||
b .one_auxv
|
||||
.cleanup:
|
||||
cmp x28, #-1 // is secondary fd set?
|
||||
bne .cleanup1 // not set
|
||||
beq .cleanup1 // not set
|
||||
mov x8, #57 // SYS_close
|
||||
mov x0, x28 // secondary fd
|
||||
svc #0 // syscall
|
||||
|
|
|
@ -181,7 +181,7 @@ _start:
|
|||
b .one_auxv
|
||||
.cleanup:
|
||||
cmp r14, #-1 @ secondary fd set?
|
||||
bne .cleanup1 @ not set
|
||||
beq .cleanup1 @ not set
|
||||
mov r7, #6 @ SYS_close
|
||||
mov r0, r14 @ secondary fd
|
||||
swi #0 @ syscall
|
||||
|
|
Loading…
Add table
Reference in a new issue