X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=http-backend.c;h=bac40ef6e6e3566a0ceda81303a6ebb769ac520d;hb=4e09cf2acf00c63848c365479c61d80af62eceba;hp=b977c006a4dd32a791578276476dfafda8030b50;hpb=efc8a625e9b03e6f8ceed37ccd4b9167a7447e31;p=thirdparty%2Fgit.git diff --git a/http-backend.c b/http-backend.c index b977c006a4..bac40ef6e6 100644 --- a/http-backend.c +++ b/http-backend.c @@ -164,7 +164,7 @@ static void send_strbuf(const char *type, struct strbuf *buf) static void send_local_file(const char *the_type, const char *name) { - const char *p = git_path("%s", name); + char *p = git_pathdup("%s", name); size_t buf_alloc = 8192; char *buf = xmalloc(buf_alloc); int fd; @@ -191,6 +191,7 @@ static void send_local_file(const char *the_type, const char *name) } close(fd); free(buf); + free(p); } static void get_text_file(char *name)