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

[PATCH] Fix memory leak like situation when parsing a svn_config_t object repeatedly

From: Bernd Rinn <bernd_at_sdf.lonestar.org>
Date: 2005-07-24 23:23:42 CEST

OK, docs are tweaked accordingly.

Log message for svn_config_enumerate_pool_1.3_api.patch:

[[[
Create revision 2 of the API of function svn_config_enumerate() and
svn_config_enumerate_sections() to get the memory pool handling right.

Patch by: Bernd Rinn <bernd@sdf.lonestar.org>

* subversion/libsvn_subr/config.c
  (svn_config_enumerate2): New. Copy of svn_config_enumerate() with
cfg->x_pool replaced by the pool provided.
  (svn_config_sections2): New. Copy of svn_config_enumerate_sections()
with cfg->x_pool replaced by the pool provided.
  (svn_config_enumerate): Deprecated. Create subpool of cfg->x_pool and
call svn_config_enumerate2().
  (svn_config_sections): Deprecated. Create subpool of cfg->x_pool and
call svn_config_enumerate_sections2().

* subversion/include/svn_config.h
  (svn_config_enumerate2): New.
  (svn_config_sections2): New.
  (svn_config_enumerate): Deprecated.
  (svn_config_sections): Deprecated.

]]]

Log message for
svn_config_enumerate_pool_1.3_replace_deprecated_functioncalls.patch:

[[[
Replace calls to deprecated functions svn_config_enumerate() and
svn_config_sections().

Patch by: Bernd Rinn <bernd@sdf.lonestar.org>

* subversion/libsvn_client/add.c
  (svn_client__get_auto_props): Replace call to svn_config_enumerate
with call to svn_config_enumerate2().

* subversion/libsvn_repos/authz.c
  (authz_parse_section, authz_get_path_access, authz_get_tree_access,
authz_validate_section, svn_repos_authz_read): Replace calls to
svn_config_enumerate with calls to svn_config_enumerate2(), and calls to
svn_config_enumerate_sections() with calls to
svn_config_enumerate_sections2().
]]]

--
Bernd Rinn



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Jul 24 23:24:58 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.