Merge branch 'ah/plugleaks'
Plug or annotate remaining leaks that trigger while running the very basic set of tests. * ah/plugleaks: transport: also free remote_refs in transport_disconnect() parse-options: don't leak alias help messages parse-options: convert bitfield values to use binary shift init-db: silence template_dir leak when converting to absolute path init: remove git_init_db_config() while fixing leaks worktree: fix leak in dwim_branch() clone: free or UNLEAK further pointers when finished reset: free instead of leaking unneeded ref symbolic-ref: don't leak shortened refname in check_symref()
This commit is contained in:
@ -1452,6 +1452,8 @@ int transport_disconnect(struct transport *transport)
|
||||
int ret = 0;
|
||||
if (transport->vtable->disconnect)
|
||||
ret = transport->vtable->disconnect(transport);
|
||||
if (transport->got_remote_refs)
|
||||
free_refs((void *)transport->remote_refs);
|
||||
free(transport);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user