summaryrefslogtreecommitdiff
path: root/ctype.c
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-02-02 03:00:03 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-02 21:33:18 -0800
commit3cf8b462d2dbe78233bba5c0765ecaa2c6b6cd99 (patch)
treec2435bd80d4bdb7025cba8e37d8e0d6bfa45868f /ctype.c
parentdoc: hooks.txt said post-commit default sends an email, it doesn't (diff)
downloadtgif-3cf8b462d2dbe78233bba5c0765ecaa2c6b6cd99.tar.xz
Don't leak file descriptors from unavailable pack files.
If open_packed_git failed it may have been because the packfile actually exists and is readable, but some sort of verification did not pass. In this case open_packed_git left pack_fd filled in, as the file descriptor is valid. We don't want to leak the file descriptor, nor do we want to allow someone in the future to use this packed_git. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ctype.c')
0 files changed, 0 insertions, 0 deletions