[Ocfs2-tools-devel] [PATCH] o2cb_ctl: free 'cf' at the end of j_config_free()
piaojun
piaojun at huawei.com
Sun Oct 16 19:43:49 PDT 2016
'cf' need to be freed at the end of j_config_free().
Signed-off-by: Jun Piao <piaojun at huawei.com>
---
o2cb_ctl/o2cb_config.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/o2cb_ctl/o2cb_config.c b/o2cb_ctl/o2cb_config.c
index 17749f8..2bb1094 100644
--- a/o2cb_ctl/o2cb_config.c
+++ b/o2cb_ctl/o2cb_config.c
@@ -549,6 +549,7 @@ gint o2cb_config_store(O2CBConfig *config, const gchar *filename)
g_free(text);
out:
+ j_config_free(cf);
return rc;
} /* o2cb_config_store() */
--
1.9.5.msysgit.1
More information about the Ocfs2-tools-devel
mailing list