summaryrefslogtreecommitdiffstats
path: root/setup.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-27 13:46:10 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-27 20:19:58 +0200
commitf962ffc392fe1831d047a10a28a55710d987d746 (patch)
tree79311810bd80323f23a67d859aff91c2d9aa8ae0 /setup.c
parentcheckout: clarify memory ownership in `unique_tracking_name()` (diff)
downloadgit-f962ffc392fe1831d047a10a28a55710d987d746.tar.xz
git-f962ffc392fe1831d047a10a28a55710d987d746.zip
http: refactor code to clarify memory ownership
There are various variables assigned via `git_config_string()` and `git_config_pathname()` which are never free'd. This bug is relatable because the out parameter of those functions are a `const char **`, even though memory ownership is transferred to the caller. We're about to adapt the functions to instead use `char **`. Prepare the code accordingly. Note that the `(const char **)` casts will go away once we have adapted the functions. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
0 files changed, 0 insertions, 0 deletions