ref-filter: free item->value and item->value->s
commitf0062d3b74cfd4425188e16cbda358b1e0228d85
authorOlga Telezhnaya <olyatelezhnaya@gmail.com>
Thu, 18 Oct 2018 07:28:54 +0000 (18 07:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Oct 2018 02:28:13 +0000 (19 11:28 +0900)
tree5935fc618708587e5f392ff91765c913b995814d
parentdeec6b8e0f855917443fa0d3bad27089f6a8e23a
ref-filter: free item->value and item->value->s

Release item->value.
Initialize item->value->s dynamically and then release its resources.
Release some local variables.

Final goal of this patch is to reduce number of memory leaks.

Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c