fix: crash in proxy tool

This commit is contained in:
yicheng 2020-07-10 20:17:27 +08:00
parent 1a71431a17
commit 7c7a537475

View File

@ -119,8 +119,10 @@
CFRelease(store);
return nil;
}
CFRelease(result);
result = NULL;
if (result != NULL) {
CFRelease(result);
result = NULL;
}
CFRelease(store);
char *dir = getpwuid(uid)->pw_dir;
NSString *path = [NSString stringWithUTF8String:dir];