diff options
author | Stefan Beller <sbeller@google.com> | 2015-05-04 12:11:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-05 10:31:51 -0700 |
commit | d7a643b73ff4d54e2ad746e3a65a50bf21ac71ce (patch) | |
tree | a282c59b258def30ab826b5559899ea02c335fd5 /t/t5302-pack-index.sh | |
parent | Git 2.4 (diff) | |
download | tgif-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