stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit ae301f39bbf47db3309447ccf9e48bc5aaca8068 parent 972df5b2cd466fd39d4629497c5ca5f1cd00e780 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Mar 2017 21:30:43 +0100 fix potential leak, found by clang-analyzer Diffstat:
| M | stagit.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -114,6 +114,7 @@ commitinfo_getstats(struct commitinfo *ci) err(1, "calloc"); if (git_patch_from_diff(&patch, ci->diff, i)) { git_patch_free(patch); + free(di); goto err; } di->patch = patch;