zeromq / ingescape

Model-based framework for broker-free distributed software environments. Any language, any OS, web, cloud.
Other
61 stars 14 forks source link

Problem: There is a memory leak when participating in elections #10

Closed Mathsoum closed 2 years ago

Mathsoum commented 2 years ago

Solution: Plug that leak.

We append strings to two zlist using strdup but both zlists are autofree.
autofree means that the appended values will be copied automatically, therefore there is no need for strdup.