Skip to content

Commit

Permalink
attr: plug minor memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Jun 30, 2009
1 parent 476cc72 commit d4c9856
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit d4c9856

Please sign in to comment.