diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-05-27 13:46:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-27 11:19:58 -0700 |
commit | f962ffc392fe1831d047a10a28a55710d987d746 (patch) | |
tree | 79311810bd80323f23a67d859aff91c2d9aa8ae0 /builtin/commit.c | |
parent | cc395d6b47e4af59b3e87a64b34dffa79e8dc262 (diff) |
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions