From: René Scharfe Date: Tue, 29 Jul 2014 00:05:04 GMT Subject: fixup for 05/10: plug leak Message-ID: <53D6E530.5000504@web.de> In-Reply-To: <53D6964E.1070100@web.de> Noticed-by: Jeff King --- 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