avb: free resources on error

This commit is contained in:
Wim Taymans 2022-08-20 21:41:59 +02:00
parent 0e847c97c8
commit f9e7fd7c67

View file

@ -423,7 +423,7 @@ struct avb_maap *avb_maap_register(struct server *server)
if (pw_getrandom(maap->xsubi, sizeof(maap->xsubi), 0) != sizeof(maap->xsubi)) {
res = -errno;
goto error;
goto error_free;
}
load_state(maap);