From 14e9d292ffba75b5f701a2cc15dfa0512798f89d Mon Sep 17 00:00:00 2001 From: qiankunzheng Date: Sat, 12 Dec 2015 20:03:22 -0500 Subject: [PATCH] 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 --- src/mount/mtab.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.47.3