From e0676e66a87cdb744f12d9ab15a18ed66dfd2d5c Mon Sep 17 00:00:00 2001
From: Matthieu Hautreux <matthieu.hautreux@cea.fr>
Date: Fri, 3 Apr 2015 08:15:08 -0700
Subject: [PATCH] layouts: ensure no double xfree of the layouts by
 layouts_fini()

---
 src/common/layouts_mgr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/common/layouts_mgr.c b/src/common/layouts_mgr.c
index 5a5b2b260dd..511636fac5c 100644
--- a/src/common/layouts_mgr.c
+++ b/src/common/layouts_mgr.c
@@ -145,10 +145,8 @@ static void _layout_plugins_destroy(layout_plugin_t *lp)
 {
 	plugin_context_destroy(lp->context);
 	/* it might be interesting to also dlclose the ops here */
-	layout_free(lp->layout);
 	xfree(lp->name);
 	xfree(lp->ops);
-	xfree(lp->layout);
 }
 /*
  * layouts_keydef_t - entities similar keys share a same key definition
-- 
GitLab