summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-04-16 11:26:27 -0400
committerArmaan Bhojwani <me@armaanb.net>2021-04-16 11:26:27 -0400
commit9e16b930ef25a57a68419e7588faf40c2e241e90 (patch)
treed34835db813a0ff7d4953a313b9fcb0d324f881b
parent3d8d6d841e2a72d3c2ce12ff78b91106d548e308 (diff)
downloadstagit-9e16b930ef25a57a68419e7588faf40c2e241e90.tar.gz
Fix leaks
-rw-r--r--src/stagit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stagit.c b/src/stagit.c
index cac0251..77191d5 100644
--- a/src/stagit.c
+++ b/src/stagit.c
@@ -481,6 +481,7 @@ call_chroma(const char *filename, FILE *fp, const char *s, size_t len)
#else
fprintf(fp, "<pre>%s</pre>", s);
#endif
+ free(html);
}
void
@@ -1390,6 +1391,7 @@ main(int argc, char *argv[])
/* cleanup */
git_repository_free(repo);
git_libgit2_shutdown();
+ free(strippedname);
return 0;
}