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

[PATCH] Fix memory leaks in Python bindings

From: David James <james_at_cs.toronto.edu>
Date: Sun, 11 May 2008 20:34:14 -0700

Hi Eric,

While reviewing r31055 for merge to the 1.5.x branch, I noticed a few
memory leaks in swigutil_py.c. Some of these memory leaks are new in
r31055 and others have been hanging around in trunk for a while. I
wrote this patch to clean them up.


Sweep through swigutil_py.c, fixing reference-count memory leaks.

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

  (make_ob_wc_adm_access): New helper function.

  (svn_swig_py_delta_path_driver_cb_func, ra_callbacks_cancel_func,
   wc_diff_callbacks2_file_changed_or_added, wc_diff_callbacks2_file_deleted,
   wc_diff_callbacks2_dir_added, wc_diff_callbacks2_dir_deleted,
   wc_diff_callbacks2_dir_props_changed): Fix reference-count memory leaks.


Patch attached as python-memleak-patch.txt.



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

Received on 2008-05-12 05:34:26 CEST

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.