diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-01 12:40:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-01 08:47:37 -0700 |
commit | 145c9790207b9847b609d997c86c7cf8cec043b2 (patch) | |
tree | 03e488bc1b1f07d3b53518b68877dccb27d3da72 /t/helper/test-path-utils.c | |
parent | cd6d7630fa51ad16afa010c6619870cab6c6faba (diff) |
builtin/credential-cache: fix trivial leaks
There are two trivial leaks in git-credential-cache(1):
- We leak the child process in `spawn_daemon()`. As we do not call
`finish_command()` and instead let the created process daemonize, we
have to clear the process manually.
- We do not free the computed socket path in case it wasn't given via
`--socket=`.
Plug both of these memory leaks.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions