[Tarantool-patches] [tarantool-patches] [PATCH v1 1/1] netbox: fix memleak in lbox_tuple_format_new()

Kirill Yukhin kyukhin at tarantool.org
Tue Nov 5 13:38:22 MSK 2019


Hello,

On 30 окт 13:58, imeevma at tarantool.org wrote:
> Memleak appeared due to the fact that when creating a dictionary
> its reference count is 1 from the beginning. Later, when the
> dictionary is used to create tuple_format, its reference counter
> increased by 1 and it became equal to 2. After removing
> tuple_format, the reference counter for dict decreased by one, so
> it became equal to 1. Since ref counter is not equal to 0, dict
> not deleted, causing a memory leak.
> 
> Closes #4588

I've checked your patch into 2.2 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list