author | Nicolas Pitre <nico@cam.org> | |
Wed, 17 Oct 2007 01:55:48 +0000 (21:55 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 17 Oct 2007 06:54:56 +0000 (02:54 -0400) | ||
commit | 7ba502c47bda21d060844863991083f4c319d436 | |
tree | 200952ea673cdf589e161de938c2012c5351de72 | tree | snapshot |
parent | 2f8b89472cec19a530cb697c4ee20e0ddfd747f6 | commit | diff |
pack-objects.c: fix some global variable abuse and memory leaks
To keep things well layered, sha1close() now returns the file descriptor
when it doesn't close the file.
An ugly cast was added to the return of write_idx_file() to avoid a
warning. A proper fix will come separately.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
To keep things well layered, sha1close() now returns the file descriptor
when it doesn't close the file.
An ugly cast was added to the return of write_idx_file() to avoid a
warning. A proper fix will come separately.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-pack-objects.c | diff | blob | history | |
csum-file.c | diff | blob | history |