From: Kefu Chai Date: Tue, 14 Jan 2020 06:44:48 +0000 (+0800) Subject: pybind/cephfs: s/ceph_buffer_free/free/ X-Git-Tag: v15.1.0~149^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7faa75c6fcf9598c99cedb56720b2de767880120;p=ceph.git pybind/cephfs: s/ceph_buffer_free/free/ free() assumes how libcephfs manages the memory. let's use ceph_buffer_free() for better encapsulation. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index c2027707c7c..f568caf59fb 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -526,7 +526,7 @@ cdef class LibCephFS(object): return decode_cstr(addrs) finally: - free(addrs) + ceph_buffer_free(addrs) def conf_read_file(self, conffile=None):