From: qiankunzheng Date: Sun, 13 Dec 2015 01:03:22 +0000 (-0500) Subject: mount/mtab.cc: memory leaks X-Git-Tag: v10.0.2~48^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6905%2Fhead;p=ceph.git mount/mtab.cc: memory leaks the free() should be called to free resources, in order to avoid memory leaks Fixes:#14066 Signed-off-by: Qiankun Zheng --- diff --git a/src/mount/mtab.c b/src/mount/mtab.c index d17f7a55f6cd..4dc82bb34faa 100644 --- a/src/mount/mtab.c +++ b/src/mount/mtab.c @@ -289,4 +289,6 @@ update_mtab_entry(const char *spec, const char *node, const char *type, free(mnt.mnt_fsname); free(mnt.mnt_dir); + free(mnt.mnt_type); + free(mnt.mnt_opts); }