Repository navigation
[swig] fix memory leak in swig interface - #6923
Conversation
Add %newobject declaractions for some functions returning strings, so generated wrappers release the respective memory accordingly.
|
/AzurePipelines run |
jameslamb
left a comment
There was a problem hiding this comment.
Thanks for this!
Sorry for the delay, we've had some significant CI challenges recently (#6918, for example). I've merged in latest master and started CI here.
I'm not very familiar with SWIG, but these changes look great to me based on the description of %newobject here: https://www.swig.org/Doc1.3/Customization.html#ownership
I looked through the rest of this file and don't see any other functions that I think should also be annotated in this way.
|
This pull request has been automatically locked since there has not been any recent activity since it was closed. |
Add %newobject declaractions for some functions returning strings, so generated wrappers release the respective memory accordingly.