[dynamic registrar] Free the return value from mono_signature_get_params and mono_signature_get_return_type.#11730
Conversation
…ams and mono_signature_get_return_type.
Before:
There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)
After:
There were 258066 MonoObjects created, 246781 MonoObjects freed, so 11285 were not freed. (dynamic registrar)
There were 205804 MonoObjects created, 204491 MonoObjects freed, so 1313 were not freed. (static registrar)
🔥 Tests failed catastrophically on Build (no summary found). 🔥Result file $(TEST_SUMMARY_PATH) not found. GitHub pagesResults can be found in the following github pages (it might take some time to publish): |
|
🥳 |
| } else { | ||
| for (int i = 0; i < index + 1; i++) | ||
| for (int i = 0; i < index + 1; i++) { | ||
| xamarin_mono_object_release (&p); |
There was a problem hiding this comment.
I assume it's fine if the first iteration points to NULL, right ?
There was a problem hiding this comment.
Correct, a pointer to NULL will be ignored.
| for (int i = 0; i < index + 1; i++) { | ||
| xamarin_mono_object_release (&p); | ||
| p = mono_signature_get_params (msig, &iter); | ||
| } |
There was a problem hiding this comment.
what will release the last p assigned in the loop ?
There was a problem hiding this comment.
It will be returned from this function, and the caller will have to release it.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diff✅ API Diff (from PR only) (no change) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results2 tests failed, 106 tests passed.Failed tests
Pipeline on Agent XAMBOT-1100.BigSur |
|
Test failures are unrelated
|
Before:
After: