irods / irods

Open Source Data Management Software
https://irods.org
BSD 3-Clause "New" or "Revised" License
446 stars 141 forks source link

Use `irods::at_scope_exit` to free `RxComm::auth_scheme` #6375

Open alanking opened 2 years ago

alanking commented 2 years ago

Please investigate whether this results in a leak.

alanking commented 2 years ago

I think I found the free call, so this might be close-able...

https://github.com/irods/irods/blob/e874106bbb1b67d7b59e7cbd112d37d200c2710a/server/core/src/rodsAgent.cpp#L593

korydraughn commented 1 year ago

Yes. That call to free() guards against a memory leak if everything works as expected.

Updating the code to use at_scope_exit would be better, but I don't think we need to address that for 4.2.12.

Bumping to 4.3.2 as this isn't an urgent issue.

trel commented 1 year ago

updated the checkboxes accordingly.