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
#pragma safety enable void* _Owner _Opt malloc(unsigned long size); void free(void* _Owner _Opt ptr); int main() { void * _Owner _Opt p = malloc(1); void *_Owner _Opt p2 = p; //MOVED free(p2); free(p); //MOVED }
http://thradams.com/cake/playground.html?code=I3ByYWdtYSBzYWZldHkgZW5hYmxlDQoNCnZvaWQqIF9Pd25lciBfT3B0IG1hbGxvYyh1bnNpZ25lZCBsb25nIHNpemUpOw0Kdm9pZCBmcmVlKHZvaWQqIF9Pd25lciBfT3B0IHB0cik7DQoNCmludCBtYWluKCkgew0KICAgdm9pZCAqIF9Pd25lciBfT3B0IHAgPSBtYWxsb2MoMSk7DQogICB2b2lkICpfT3duZXIgX09wdCBwMiA9IHA7ICAgDQogICBmcmVlKHAyKTsgICANCiAgIHN0YXRpY19kZWJ1ZyhwKTsNCiAgIGZyZWUocCk7DQp9&to=-2&options=
The text was updated successfully, but these errors were encountered:
No branches or pull requests
http://thradams.com/cake/playground.html?code=I3ByYWdtYSBzYWZldHkgZW5hYmxlDQoNCnZvaWQqIF9Pd25lciBfT3B0IG1hbGxvYyh1bnNpZ25lZCBsb25nIHNpemUpOw0Kdm9pZCBmcmVlKHZvaWQqIF9Pd25lciBfT3B0IHB0cik7DQoNCmludCBtYWluKCkgew0KICAgdm9pZCAqIF9Pd25lciBfT3B0IHAgPSBtYWxsb2MoMSk7DQogICB2b2lkICpfT3duZXIgX09wdCBwMiA9IHA7ICAgDQogICBmcmVlKHAyKTsgICANCiAgIHN0YXRpY19kZWJ1ZyhwKTsNCiAgIGZyZWUocCk7DQp9&to=-2&options=
The text was updated successfully, but these errors were encountered: