You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2013/02/19 23:41:58 UTC

svn commit: r1447947 - /subversion/trunk/subversion/libsvn_repos/authz.c

Author: philip
Date: Tue Feb 19 22:41:58 2013
New Revision: 1447947

URL: http://svn.apache.org/r1447947
Log:
Fix a memory bug: using pool memory after clear.

* subversion/libsvn_repos/authz.c
  (authz_retrieve_config_repo): Allocate result in result pool.
  (authz_retrieve_config): Typo in docstring.

Modified:
    subversion/trunk/subversion/libsvn_repos/authz.c

Modified: subversion/trunk/subversion/libsvn_repos/authz.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/authz.c?rev=1447947&r1=1447946&r2=1447947&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/authz.c (original)
+++ subversion/trunk/subversion/libsvn_repos/authz.c Tue Feb 19 22:41:58 2013
@@ -826,7 +826,7 @@ authz_retrieve_config_repo(svn_config_t 
     {
       if (!must_exist)
         {
-          SVN_ERR(svn_config_create(cfg_p, TRUE, scratch_pool));
+          SVN_ERR(svn_config_create(cfg_p, TRUE, result_pool));
           return SVN_NO_ERROR;
         }
       else
@@ -855,7 +855,7 @@ authz_retrieve_config_repo(svn_config_t 
   return SVN_NO_ERROR;
 }
 
-/* Given a PATH which might be a realative repo URL (^/), an absolute
+/* Given a PATH which might be a relative repo URL (^/), an absolute
  * local repo URL (file://), an absolute path outside of the repo
  * or a location in the Windows registry.
  *