diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-05-27 13:46:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-27 11:19:58 -0700 |
commit | cc395d6b47e4af59b3e87a64b34dffa79e8dc262 (patch) | |
tree | b1e71b4797f89fe945f2ee87860ee24bcefa37be /builtin/commit.c | |
parent | 94e2aa555e7dab4f5296a8dcd8605d751e02b12d (diff) |
checkout: clarify memory ownership in `unique_tracking_name()`
The function `unique_tracking_name()` returns an allocated string, but
does not clearly indicate this because its return type is `const char *`
instead of `char *`. This has led to various callsites where we never
free its returned memory at all, which causes memory leaks.
Plug those leaks and mark now-passing tests as leak free.
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