Subject: Re: [PATCH 08/14] fetch-pack: factor out get_selected_capabilities_list

From: David Turner <[email-masked]>
Date: Mon, 02 May 2016 15:09:32 -0400

On Fri, 2016-04-29 at 16:34 -0700, Stefan Beller wrote:
> +			struct string_list_item *item;
> +			get_selected_capabilities_list(&list, args);
> +			for_each_string_list_item(item, &list) {
> +				strbuf_addstr(&c, " ");
> +				strbuf_addstr(&c, item->string);
> +			}
> +

I think the contents of list leak here -- you need a string_list_clear.