| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e132dca commit c024dfb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,6 +51,8 @@ void GitRepository::GetRemotesWorker::Execute() | |||
| 51 | 51 | if (giterr_last() != NULL) { | |
| 52 | 52 | baton->error = git_error_dup(giterr_last()); | |
| 53 | 53 | } | |
| 54 | + | ||
| 55 | + git_repository_free(repo); | ||
| 54 | 56 | delete baton->out; | |
| 55 | 57 | baton->out = NULL; | |
| 56 | 58 | return; | |
@@ -82,6 +84,9 @@ void GitRepository::GetRemotesWorker::Execute() | |||
| 82 | 84 | ||
| 83 | 85 | baton->out->push_back(remote); | |
| 84 | 86 | } | |
| 87 | + | ||
| 88 | + git_strarray_free(&remote_names); | ||
| 89 | + git_repository_free(repo); | ||
| 85 | 90 | } | |
| 86 | 91 | ||
| 87 | 92 | void GitRepository::GetRemotesWorker::HandleErrorCallback() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments