List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 0/6] Fix several obvious memory leaks
@ 2013-03-04 12:25 cgit
  2013-03-04 12:25 ` [PATCH 1/6] Free reflists after usage cgit
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: cgit @ 2013-03-04 12:25 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-05  1:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04 12:25 [PATCH 0/6] Fix several obvious memory leaks cgit
2013-03-04 12:25 ` [PATCH 1/6] Free reflists after usage cgit
2013-03-04 12:25 ` [PATCH 2/6] print_tag_downloads(): Free ref variable cgit
2013-03-04 12:25 ` [PATCH 3/6] find_default_branch(): Free refmatch after usage cgit
2013-03-04 12:25 ` [PATCH 4/6] cgit_print_tree(): Free curr_rev " cgit
2013-03-05  1:36   ` Jason
2013-03-04 12:25 ` [PATCH 5/6] cgit_print_commit(): Free tmp variable cgit
2013-03-04 12:25 ` [PATCH 6/6] cgit_print_snapshot_links(): Free prefix variable cgit
2013-03-05  0:53 ` [PATCH 0/6] Fix several obvious memory leaks Jason
2013-03-05  1:50   ` Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).