builtin/credential: clear credential before exit
We never release memory associated with `struct credential`. Fix this and mark the corresponding test as leak free. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
49eb597ce0
commit
96c1655095
@ -39,5 +39,7 @@ int cmd_credential(int argc, const char **argv, const char *prefix UNUSED)
|
||||
} else {
|
||||
usage(usage_msg);
|
||||
}
|
||||
|
||||
credential_clear(&c);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user