summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 651df67)
raw | patch | inline | side by side (parent: 651df67)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 7 May 2005 08:27:00 +0000 (01:27 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 7 May 2005 08:27:00 +0000 (01:27 -0700) |
This does not matter for commands that write just a handful SHA1 files,
but is noticeable in git-convert-cache which essentially traverses the
entire object database.
Signed-off-by: Junio C Hamano <junkio@cox.net>
but is noticeable in git-convert-cache which essentially traverses the
entire object database.
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index bd68783a409473ba7cdfb4d68b8f4466d13d507a..ee62eee208aad4c0e0247fdfa1c8420c418df272 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -425,6 +425,7 @@ int write_sha1_file(char *buf, unsigned long len, const char *type, unsigned cha
die("unable to write file");
fchmod(fd, 0444);
close(fd);
+ free(compressed);
ret = link(tmpfile, filename);
if (ret < 0) {