projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.6.0
[platform/upstream/git.git]
/
http-backend.c
diff --git
a/http-backend.c
b/http-backend.c
index
501bf79
..
bac40ef
100644
(file)
--- a/
http-backend.c
+++ b/
http-backend.c
@@
-92,7
+92,7
@@
static void hdr_int(const char *name, uintmax_t value)
static void hdr_date(const char *name, unsigned long when)
{
static void hdr_date(const char *name, unsigned long when)
{
- const char *value = show_date(when, 0, DATE_
RFC2822
);
+ const char *value = show_date(when, 0, DATE_
MODE(RFC2822)
);
hdr_str(name, value);
}
hdr_str(name, value);
}
@@
-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)
{
static void send_local_file(const char *the_type, const char *name)
{
- c
onst char *p = git_path
("%s", name);
+ c
har *p = git_pathdup
("%s", name);
size_t buf_alloc = 8192;
char *buf = xmalloc(buf_alloc);
int fd;
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);
}
close(fd);
free(buf);
+ free(p);
}
static void get_text_file(char *name)
}
static void get_text_file(char *name)