summaryrefslogtreecommitdiff
path: root/t/t5302-pack-index.sh
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2015-05-04 12:11:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-05 10:31:51 -0700
commitd7a643b73ff4d54e2ad746e3a65a50bf21ac71ce (patch)
treea282c59b258def30ab826b5559899ea02c335fd5 /t/t5302-pack-index.sh
parentGit 2.4 (diff)
downloadtgif-d7a643b73ff4d54e2ad746e3a65a50bf21ac71ce.tar.xz
prefix_path(): unconditionally free results in the callers
As of d089ebaa (setup: sanitize absolute and funny paths in get_pathspec(), 2008-01-28), prefix_path() always returns a newly allocated string, so callers should free its result. Additionally, drop the const from variables to which the result of the prefix_path() is assigned, so they can be free()'d without having to cast-away the constness. Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5302-pack-index.sh')
0 files changed, 0 insertions, 0 deletions