fosphor: Fix double free in the init failure case
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
32a28fc495
commit
f5cee5f826
|
@ -606,6 +606,9 @@ fosphor_cl_release(struct fosphor *self)
|
|||
|
||||
/* Release structure */
|
||||
free(cl);
|
||||
|
||||
/* Nothing left */
|
||||
self->cl = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -253,6 +253,9 @@ fosphor_gl_release(struct fosphor *self)
|
|||
|
||||
/* Release structure */
|
||||
free(gl);
|
||||
|
||||
/* Nothing left */
|
||||
self->gl = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue