Publisher double free on create




I think I found an issue with publisher create. On the error paths in _createByIndex, the function mamaPublisherImpl_cleanup(impl) is called and then the impl is immediately freed after but mamaPublisherImpl_cleanup(impl) also calls free on the impl as well. mamaPublisherImpl_cleanup was introduce in the publisher event feature, I believe, and is used as a publisher destroy.  Should the mamaPublisherImpl_cleanup function free the impl parameter or should create not free the impl on error paths?


Chris Morgan

Join to automatically receive all group messages.