]> 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)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 3 Feb 2015 05:51:16 +0000 (06:51 +0100)
commit60b019f69aa0e39d276c669698c92fc890599f50
tree6e752d047094a79c9b710d3130b6bc199e096c05
parent0f9f4e536e1c937700287a5b311567b62a087207
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>
src/pybind/rados.py