projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543107c
)
fix memory leak of commitinfo
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 12 Mar 2017 20:24:07 +0000
(21:24 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 12 Mar 2017 20:24:07 +0000
(21:24 +0100)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index d3753eb7a4ebc667133ab1e804a12e87d163b639..835f6f3efb0f365b17f913de31a84110d781401d 100644
(file)
--- a/
stagit.c
+++ b/
stagit.c
@@
-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;
}