mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 16:19:25 +02:00
Remove duplicate code from tmemClose()
This commit is contained in:
parent
f3449e5fdf
commit
a9163e7244
@ -148,16 +148,14 @@ Result tmemClose(TransferMemory* t)
|
||||
}
|
||||
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
if (t->handle != INVALID_HANDLE) {
|
||||
rc = svcCloseHandle(t->handle);
|
||||
}
|
||||
|
||||
rc = tmemCloseHandle(t);
|
||||
|
||||
if (t->src_addr != NULL) {
|
||||
__libnx_free(t->src_addr);
|
||||
}
|
||||
|
||||
t->src_addr = NULL;
|
||||
t->handle = INVALID_HANDLE;
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user