diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-03-12 21:24:07 +0100 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-03-12 21:24:07 +0100 |
| commit | ae6461dc6f6ddc1d4bb33eef9cee71d4e7599458 (patch) | |
| tree | 146ffd33470b0a28b5f1ea3e3c856f6e6901a57e | |
| parent | 543107cc36306a3539d21a8441e75276310a45db (diff) | |
fix memory leak of commitinfo
| -rw-r--r-- | stagit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,6 +178,7 @@ commitinfo_free(struct commitinfo *ci) git_tree_free(ci->parent_tree); git_commit_free(ci->commit); git_commit_free(ci->parent); + free(ci); } struct commitinfo * @@ -221,7 +222,6 @@ commitinfo_getbyoid(const git_oid *id) err: commitinfo_free(ci); - free(ci); return NULL; } |
