summaryrefslogtreecommitdiff
path: root/urlmatch.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-09-05 09:04:14 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-06 18:06:26 +0900
commitbaddc96b2cbf66fdcde87509392dc8da6a77f452 (patch)
treeee56f396652711e330338db066b2a3babf3f2b07 /urlmatch.h
parentadd: free leaked pathspec after add_files_to_cache() (diff)
downloadtgif-baddc96b2cbf66fdcde87509392dc8da6a77f452.tar.xz
update-index: fix cache entry leak in add_one_file()
When we fail to add the cache entry to the index, we end up just leaking the struct. We should follow the pattern of the early-return above and free it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'urlmatch.h')
0 files changed, 0 insertions, 0 deletions