fixup for 05/10: plug leak
- From
René Scharfe <l.s.r@web.de>
- Date
- Jul 29, 2014, 00:05 UTC
- Message-ID
- <53D6E530.5000504@web.de>
- In-Reply-To
- <53D6964E.1070100@web.de>
Noticed-by: Jeff King <peff@peff.net> --- abspath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/abspath.c b/abspath.c index 16e7fa2..6aa328f 100644 --- a/abspath.c +++ b/abspath.c @@ -58,7 +58,7 @@ static const char *real_path_internal(const char *path, int die_on_error) goto error_out; } - strbuf_init(&sb, 0); + strbuf_reset(&sb); strbuf_addstr(&sb, path); while (depth--) {
-- 2.0.2