]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix memory leak in python rados bindings
authorBilly Olsen <billy.olsen@gmail.com>
Mon, 2 Feb 2015 23:24:59 +0000 (16:24 -0700)
committerLoic Dachary <ldachary@redhat.com>
Tue, 10 Mar 2015 23:41:05 +0000 (00:41 +0100)
commit3bab47054dc77b9a00d3f47fa73f458ede7d4ab4
treea0b87b8f883f5e7fd03ee722c632f9e714caa3fc
parentb5a67f0e1d15385bc0d60a6da6e7fc810bde6047
Fix memory leak in python rados bindings

A circular reference was inadvertently created when using the
CFUNCTYPE binding for callbacks for the asynchronous i/o callbacks.
This commit refactors the usage of the callbacks such that the
Ioctx object does not have a class reference to the callbacks.

Fixes: #10723
Backport: giant, firefly, dumpling
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 60b019f69aa0e39d276c669698c92fc890599f50)
src/pybind/rados.py