We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static id genCallbackBlock(JSValue *jsVal){
const char *fs = [funcSignature UTF8String]; char *s = malloc(strlen(fs)); strcpy(s, fs); *signature = s;
master分支代码 这个方法最后分配了内存没有地方释放
The text was updated successfully, but these errors were encountered:
本来就有泄露吧,要新增一个block类型也很难知道这个block什么时候释放,感觉可以用一个全局的Dictionary来保存这堆新增出来的签名,起码相同类型的block不会再产生多个签名字符串。不过也有可能系统会自己释放这个内存?
Sorry, something went wrong.
No branches or pull requests
static id genCallbackBlock(JSValue *jsVal){
const char *fs = [funcSignature UTF8String];
char *s = malloc(strlen(fs));
strcpy(s, fs);
*signature = s;
master分支代码
这个方法最后分配了内存没有地方释放
The text was updated successfully, but these errors were encountered: