Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Replace unsetenv() and setenv() with older putenv().
[gitweb.git]
/
csum-file.c
diff --git
a/csum-file.c
b/csum-file.c
index 907efbf860152347bffe0cc999fdacad2a5f0724..c66b9eb10bfad8fee8b7b779cbb4a8e7c86480af 100644
(file)
--- a/
csum-file.c
+++ b/
csum-file.c
@@
-45,6
+45,7
@@
int sha1close(struct sha1file *f, unsigned char *result, int update)
sha1flush(f, 20);
if (close(f->fd))
die("%s: sha1 file error on close (%s)", f->name, strerror(errno));
+ free(f);
return 0;
}