]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: s/ceph_buffer_free/free/ 32629/head
authorKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 06:44:48 +0000 (14:44 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 06:46:32 +0000 (14:46 +0800)
free() assumes how libcephfs manages the memory. let's use
ceph_buffer_free() for better encapsulation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/cephfs/cephfs.pyx

index c2027707c7c74dd6703662ff478ead3c02d4ea1d..f568caf59fb00ae6783138e8a8e8cc2842e6b498 100644 (file)
@@ -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):