Re: [PATCH v2 09/12] mailinfo: also free strbuf lists when clearing mailinfo
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 28, 2021, 00:43 UTC
- Message-ID
- <xmqq8s53dyrn.fsf@gitster.g>
- In-Reply-To
- <217f571f8ef5f3a46c0cbb1ceca022a18e5b43d2.1619360180.git.gitgitgadget@gmail.com>
"Andrzej Hunt via GitGitGadget" <gitgitgadget@gmail.com> writes:
> However, strbuf_list_free() cannot handle a NULL input, and the lists we > are freeing might be NULL. Therefore we add a NULL check in > strbuf_list_free() to make it safe to use with a NULL input (which is a > pattern used by some of the other *_free() functions around git).
OK.
Thanks.