author | Jeff King <peff@peff.net> | |
Thu, 12 Jan 2012 03:05:03 +0000 (22:05 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Jan 2012 03:07:23 +0000 (19:07 -0800) | ||
commit | 37475f97d1fbab0842c17b175263eeba6cd5e318 | |
tree | 32042255fc99d6135d33605d65d635b8b4cb8a66 | tree | snapshot |
parent | 592ed5673e3074a0d7e0a6d6626faa783c327c29 | commit | diff |
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>
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>
attr.c | diff | blob | history |