mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
just in case
This commit is contained in:
1 parent
4692a33dc0
commit
f69f964d04
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user