[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] fix small memory leak in base_dir_entries

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: Thu, 13 Mar 2008 14:50:28 -0400

Hey, just ran across this small memory leak in base_dir_entries. It's
been a while since I was in this code (or any Subversion code, for
that matter), so I figured I'd run it by the list before committing.

-garrett

Use an iteration pool when looking up entry kinds in base_dir_entries.

* subversion/libsvn_fs_base/tree.c
  (base_dir_entries): Use an iteration pool instead of putting everything
   in our main pool, since nothing we allocate in that loop needs to live any
   longer than the loop body.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org

Received on 2008-03-13 19:50:46 CET

This is an archived mail posted to the Subversion Dev mailing list.