]> git.ipfire.org Git - thirdparty/git.git/commit
list-objects-filter: don't memset after releasing filter struct
authorJeff King <peff@peff.net>
Sun, 11 Sep 2022 04:58:09 +0000 (00:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Sep 2022 15:38:58 +0000 (08:38 -0700)
commite40d906449950c140ba1e081b647c708d6d2979e
treea82155481c9f6234f83e66ba471f2244e754819e
parent7522bb9bc90c6a05ae5f422df723e1cd562dd0bf
list-objects-filter: don't memset after releasing filter struct

If we see an error while parsing a "combine" filter, we call
list_objects_filter_release() to free any allocated memory,
and then use memset() to return the struct to a known state. But the
release function already does that reinitializing. Doing it again is
pointless.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter-options.c