]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/credential-store: fix leaking credential
authorPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2024 10:40:31 +0000 (12:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2024 15:47:36 +0000 (08:47 -0700)
commit1d615afa8d5297dcb8e12d603714f03fb2f0441b
treec49e7fcf044573273edd7e4655aa24cb23f0b1c8
parent11d6a81c01b6e1931667e98d7cbe34014310af3a
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>
builtin/credential-store.c
t/t0302-credential-store.sh
t/t0303-credential-external.sh