Remove duplicate code from tmemClose()

This commit is contained in:
MasaGratoR 2023-04-14 16:35:17 +02:00 committed by GitHub
parent f3449e5fdf
commit a9163e7244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;