diff options
author | Sage Weil <sage@inktank.com> | 2012-10-01 21:08:27 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-10-01 21:08:27 -0700 |
commit | d250bb85f06614b1899e40b3661171806cca3c9c (patch) | |
tree | eda15ec6a3c2485a872668e80fec0cea2c0b30ef /src/libcephfs.cc | |
parent | 965ab908fc7dbafae14a693dd1f814ba7bcb39ee (diff) | |
download | ceph-d250bb85f06614b1899e40b3661171806cca3c9c.tar.gz |
libcephfs: destroy cmount on ceph_shutdown()
Otherwise this chunk of the heap is leaked.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/libcephfs.cc')
-rw-r--r-- | src/libcephfs.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcephfs.cc b/src/libcephfs.cc index 0400a2b0e3d..3c9feb0f67a 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -233,6 +233,7 @@ extern "C" int ceph_create(struct ceph_mount_info **cmount, const char * const i extern "C" void ceph_shutdown(struct ceph_mount_info *cmount) { cmount->shutdown(); + delete cmount; } extern "C" int ceph_conf_read_file(struct ceph_mount_info *cmount, const char *path) |