aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fosphor/cl.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2013-11-13 23:56:23 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-11-13 23:57:15 +0100
commitf5cee5f8269a61d549e05189d40a081e473c19ed (patch)
tree584143db32bf47f2581803833335965d5e62277d /lib/fosphor/cl.c
parent32a28fc495291faa3a89f98e529e27c92551e56b (diff)
fosphor: Fix double free in the init failure case
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/fosphor/cl.c')
-rw-r--r--lib/fosphor/cl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c
index 3160dc4..0afdaaa 100644
--- a/lib/fosphor/cl.c
+++ b/lib/fosphor/cl.c
@@ -606,6 +606,9 @@ fosphor_cl_release(struct fosphor *self)
/* Release structure */
free(cl);
+
+ /* Nothing left */
+ self->cl = NULL;
}
int