]> git.armaanb.net Git - stagit.git/blobdiff - src/stagit.c
Fix leaks
[stagit.git] / src / stagit.c
index cac0251bf4666bd0f49156c9b99d9a260354be95..77191d5375acb47525cfcc8a583987a2cf990f71 100644 (file)
@@ -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;
 }