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 /upload-pack.c | |
parent | 3d4a3ffe64162b45ae7c991fc60623ecb4678cfd (diff) | |
download | git-d7a643b73ff4d54e2ad746e3a65a50bf21ac71ce.tar.gz |
prefix_path(): unconditionally free results in the callerssb/prefix-path-free-results
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 'upload-pack.c')
0 files changed, 0 insertions, 0 deletions