Skip to content

Commit d4c9856

Browse files
René Scharfegitster
authored andcommitted
attr: plug minor memory leak
Free the memory allocated for struct strbuf pathbuf when we're done. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 476cc72 commit d4c9856

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

attr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ static void prepare_attr_stack(const char *path, int dirlen)
555555
}
556556
}
557557

558+
strbuf_release(&pathbuf);
559+
558560
/*
559561
* Finally push the "info" one at the top of the stack.
560562
*/

0 commit comments

Comments
 (0)