ifix potential leak, found by clang-analyzer - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 1d91c79e3c26c62bee0c047fe1db02668ca94721 /scm/stagit-gopher/commit/1d91c79e3c26c62bee0c047fe1db02668ca94721.gph bitreich.org 70 1parent ae6461dc6f6ddc1d4bb33eef9cee71d4e7599458 /scm/stagit-gopher/commit/ae6461dc6f6ddc1d4bb33eef9cee71d4e7599458.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Sun, 12 Mar 2017 21:30:43 +0100 Err bitreich.org 70 i Err bitreich.org 70 ifix potential leak, found by clang-analyzer Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit.c | 1 + Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit.c b/stagit.c /scm/stagit-gopher/file/stagit.c.gph bitreich.org 70 i@@ -114,6 +114,7 @@ commitinfo_getstats(struct commitinfo *ci) Err bitreich.org 70 i err(1, "calloc"); Err bitreich.org 70 i if (git_patch_from_diff(&patch, ci->diff, i)) { Err bitreich.org 70 i git_patch_free(patch); Err bitreich.org 70 i+ free(di); Err bitreich.org 70 i goto err; Err bitreich.org 70 i } Err bitreich.org 70 i di->patch = patch; Err bitreich.org 70 .