Message ID | 20240627133222.82707-1-r.smirnov@omp.ru |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] health/mcap: fix memory leak in mcap_create_mcl() | expand |
diff --git a/profiles/health/mcap.c b/profiles/health/mcap.c index 5d2bac3d9..b544b9a0a 100644 --- a/profiles/health/mcap.c +++ b/profiles/health/mcap.c @@ -1907,6 +1907,7 @@ gboolean mcap_create_mcl(struct mcap_instance *mi, set_default_cb(mcl); if (util_getrandom(&val, sizeof(val), 0) < 0) { mcap_instance_unref(mcl->mi); + g_free(mcl->cb); g_free(mcl); return FALSE; }