aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-01 12:40:31 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-01 08:47:36 -0700
commit1d615afa8d5297dcb8e12d603714f03fb2f0441b (patch)
treec49e7fcf044573273edd7e4655aa24cb23f0b1c8 /builtin
parent11d6a81c01b6e1931667e98d7cbe34014310af3a (diff)
downloadgit-1d615afa8d5297dcb8e12d603714f03fb2f0441b.tar.xz
builtin/credential-store: fix leaking credential
We never free credentials read by the credential store, leading to a memory leak. Plug it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/credential-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/credential-store.c b/builtin/credential-store.c
index 494c809332..97968bfa1c 100644
--- a/builtin/credential-store.c
+++ b/builtin/credential-store.c
@@ -218,5 +218,6 @@ int cmd_credential_store(int argc, const char **argv, const char *prefix)
; /* Ignore unknown operation. */
string_list_clear(&fns, 0);
+ credential_clear(&c);
return 0;
}