attr: plug minor memory leak

Free the memory allocated for struct strbuf pathbuf when we're done.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2009-07-01 00:30:00 +02:00 committed by Junio C Hamano
parent 476cc72424
commit d4c985653a

2
attr.c
View File

@ -555,6 +555,8 @@ static void prepare_attr_stack(const char *path, int dirlen)
}
}
strbuf_release(&pathbuf);
/*
* Finally push the "info" one at the top of the stack.
*/