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>
René Scharfe committed
Jul 1, 2009 at 00:30 UTC
d4c985653a580e78db94c549bdcd71669067b8a9
1 file changed
+2
attr.c
+2
@@ -555,6 +555,8 @@ static void prepare_attr_stack(const char *path, int dirlen)
555
}
556
}
557
558
+ strbuf_release(&pathbuf);
559
+
560
/*
561
* Finally push the "info" one at the top of the stack.
562
*/