reverbrain/elliptics — pull request #533 by toshic (2014-09-27 06:48:18+00:00)
Title: Memory leak in case of network problems

dnet_state_search_by_addr increments state refcount
so we need to decrement it using dnet_state_put.

Bug was found in dnet_connect_route_list_complete.

How it affects: after network problems state cleanup is not called because refcnt > 1. All transactions in state send list are not freed. As the result http proxy in a few days consumes 50GB+ of RAM.