Merge branch 'jk/hash-object-literally-fd-leak'
Leakfix. * jk/hash-object-literally-fd-leak: hash-object: fix descriptor leak with --literally
This commit is contained in:
@ -27,6 +27,7 @@ static int hash_literally(struct object_id *oid, int fd, const char *type, unsig
|
||||
else
|
||||
ret = write_object_file_literally(buf.buf, buf.len, type, oid,
|
||||
flags);
|
||||
close(fd);
|
||||
strbuf_release(&buf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user