diff options
Diffstat (limited to 'csum-file.c')
-rw-r--r-- | csum-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/csum-file.c b/csum-file.c index 907efbf860..c66b9eb10b 100644 --- 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; } |