mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Free unused git repository in git_create_local_repo()
In this function, a repository is created, but the returned object is not used. Might just as well free it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fb7116a722
commit
fd34cd4830
1 changed files with 1 additions and 0 deletions
|
@ -994,5 +994,6 @@ int git_create_local_repo(const char *filename)
|
|||
free(path);
|
||||
if (ret != 0)
|
||||
(void)report_error("Create local repo failed with error code %d", ret);
|
||||
git_repository_free(repo);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue