just in case

This commit is contained in:
Nick Chan committed 2023-02-03 14:44:26 +08:00
1 parent 4692a33dc0
commit f69f964d04
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -322,7 +322,7 @@ int passstat_cmd(unsigned char* status, const char* udid) {
{
if (passstat_status)
free(passstat_status);
passstat_status = NULL;
plist_free(node);
LOG(LOG_ERROR, "Error getting passcode state (invalid status)");
return -1;
+4 -1
View File
@@ -76,7 +76,10 @@ checkra1n_exec: {};
LOG(LOG_VERBOSE2, "%s spawned successfully", checkra1n_path);
sleep(2);
if (ext_checkra1n != NULL) unlink(checkra1n_path);
if (getenv("TMPDIR") && ext_checkra1n == NULL) free(checkra1n_path);
if (getenv("TMPDIR") && ext_checkra1n == NULL) {
free(checkra1n_path);
checkra1n_path = NULL;
}
waitpid(pid, NULL, 0);
return 0;
}