1. Stefan Saasen
  2. git


Jeff King  committed 37475f9

attr: fix leak in free_attr_elem

This function frees the individual "struct match_attr"s we
have allocated, but forgot to free the array holding their
pointers, leading to a minor memory leak (but it can add up
after checking attributes for paths in many directories).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 592ed56
  • Branches master

Comments (0)

Files changed (1)

File attr.c

View file
  • Ignore whitespace
+	free(e->attrs);