g_nop_create: destroy newly created provider in case of errors.
This commit is contained in:
parent
a9c80017cb
commit
d1fc3f715d
@ -213,7 +213,7 @@ g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
|
||||
g_destroy_consumer(cp);
|
||||
}
|
||||
if (newpp != NULL)
|
||||
g_destroy_provider(pp);
|
||||
g_destroy_provider(newpp);
|
||||
if (gp != NULL) {
|
||||
if (gp->softc != NULL)
|
||||
g_free(gp->softc);
|
||||
|
Loading…
Reference in New Issue
Block a user