mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 08:39:24 +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 (R_SUCCEEDED(rc)) {
|
||||||
if (t->handle != INVALID_HANDLE) {
|
|
||||||
rc = svcCloseHandle(t->handle);
|
rc = tmemCloseHandle(t);
|
||||||
}
|
|
||||||
|
|
||||||
if (t->src_addr != NULL) {
|
if (t->src_addr != NULL) {
|
||||||
__libnx_free(t->src_addr);
|
__libnx_free(t->src_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
t->src_addr = NULL;
|
t->src_addr = NULL;
|
||||||
t->handle = INVALID_HANDLE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user