subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1076098 - /subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c
Date Wed, 02 Mar 2011 03:07:05 GMT
Author: hwright
Date: Wed Mar  2 03:07:04 2011
New Revision: 1076098

URL: http://svn.apache.org/viewvc?rev=1076098&view=rev
Log:
* subversion/libsvn_wc/wc_db_pdh.c
  (pdh_parse_local_abspath): Followup to r1076093 by further allocating bits of
    the PDH in the result pool, rather than the db->state_pool.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c?rev=1076098&r1=1076097&r2=1076098&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db_pdh.c Wed Mar  2 03:07:04 2011
@@ -350,7 +350,7 @@ pdh_parse_local_abspath(db_pdh_t **pdh,
   if (wcroot != NULL)
     {
       *pdh = apr_pcalloc(result_pool, sizeof(**pdh));
-      (*pdh)->local_abspath = apr_pstrdup(db->state_pool, local_abspath);
+      (*pdh)->local_abspath = apr_pstrdup(result_pool, local_abspath);
       (*pdh)->wcroot = wcroot;
     }
   else
@@ -397,7 +397,7 @@ pdh_parse_local_abspath(db_pdh_t **pdh,
       if (wcroot != NULL)
         {
           *pdh = apr_pcalloc(result_pool, sizeof(**pdh));
-          (*pdh)->local_abspath = apr_pstrdup(db->state_pool, local_abspath);
+          (*pdh)->local_abspath = apr_pstrdup(result_pool, local_abspath);
           (*pdh)->wcroot = wcroot;
         }
 
@@ -437,7 +437,7 @@ pdh_parse_local_abspath(db_pdh_t **pdh,
   if (*pdh == NULL)
     {
       *pdh = apr_pcalloc(result_pool, sizeof(**pdh));
-      (*pdh)->local_abspath = apr_pstrdup(db->state_pool, local_abspath);
+      (*pdh)->local_abspath = apr_pstrdup(result_pool, local_abspath);
     }
   else
     {



Mime
View raw message