diff options
author | Jeff King <peff@peff.net> | 2012-01-11 22:05:03 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-11 19:07:23 -0800 |
commit | 37475f97d1fbab0842c17b175263eeba6cd5e318 (patch) | |
tree | 32042255fc99d6135d33605d65d635b8b4cb8a66 /attr.c | |
parent | 592ed5673e3074a0d7e0a6d6626faa783c327c29 (diff) | |
download | git-37475f97d1fbab0842c17b175263eeba6cd5e318.tar.gz |
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>
Diffstat (limited to 'attr.c')
-rw-r--r-- | attr.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -286,6 +286,7 @@ static void free_attr_elem(struct attr_stack *e) } free(a); } + free(e->attrs); free(e); } |