Fix use-after-free and double-free

This commit is contained in:
Maschell 2022-03-05 18:31:02 +01:00
parent 3d0c1151d7
commit 9c8e69003d

View File

@ -51,8 +51,10 @@ WUMS_APPLICATION_ENDS() {
if (gFSClient) {
FSDelClient(gFSClient, FS_ERROR_FLAG_ALL);
free(gFSClient);
gFSClient = nullptr;
}
free(gFSCmd);
gFSCmd = nullptr;
deinitLogging();
}