This is far from complete but fixes a couple of obvious memory leaks
seen when running `PATH_INFO=/cgit/[...]/ ./cgit` using valgrind.

In particular, this fixes all "definitely lost" block seen with:

* /cgit/refs/
* /cgit/tree/
* /cgit/commit/
* /cgit/diff/

Lukas Fleischer (6):
  Free reflists after usage
  print_tag_downloads(): Free ref variable
  find_default_branch(): Free refmatch after usage
  cgit_print_tree(): Free curr_rev after usage
  cgit_print_commit(): Free tmp variable
  cgit_print_snapshot_links(): Free prefix variable

 cgit.c      |  8 ++++++++
 cgit.h      |  1 +
 shared.c    | 36 ++++++++++++++++++++++++++++++++++++
 ui-commit.c |  1 +
 ui-refs.c   | 12 +++++++++++-
 ui-shared.c |  1 +
 ui-tree.c   |  5 ++++-
 7 files changed, 62 insertions(+), 2 deletions(-)

-- 
1.8.2.rc0.247.g811e0c0


_______________________________________________
cgit mailing list
[email protected]
http://hjemli.net/mailman/listinfo/cgit

Reply via email to