#2620: Exception when initializing large repo
-------------------------------+--------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  cboos   
     Type:  defect             |       Status:  assigned
 Priority:  normal             |    Milestone:  0.9.4   
Component:  version control    |      Version:  0.9.3   
 Severity:  major              |   Resolution:          
 Keywords:  resync             |  
-------------------------------+--------------------------------------------
Comment (by David James <[EMAIL PROTECTED]>):

 Does the following patch (for Subversion 1.3.0) help? On my system, it
 resolves the memory leak.

 {{{
 #!diff
 Index: subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
 ===================================================================
 --- subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
 (revision 18204)
 +++ subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
 (working copy)
 @@ -835,9 +835,6 @@
  {
    item_baton *newb = apr_palloc(pool, sizeof(*newb));

 -  /* one more reference to the editor. */
 -  Py_INCREF(editor);
 -
    /* note: we take the caller's reference to 'baton' */

    newb->editor = editor;
 @@ -873,7 +870,6 @@
    /* We're now done with the baton. Since there isn't really a free, all
       we need to do is note that its objects are no longer referenced by
       the baton.  */
 -  Py_DECREF(ib->editor);
    Py_XDECREF(ib->baton);

  #ifdef SVN_DEBUG
 @@ -1281,7 +1277,6 @@
    /* We're now done with the baton. Since there isn't really a free, all
       we need to do is note that its objects are no longer referenced by
       the baton.  */
 -  Py_DECREF(ib->editor);
    Py_XDECREF(ib->baton);

  #ifdef SVN_DEBUG
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2620>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to