mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
sinowealth: fix a memory leak
We were getting profiles, but never unreferenced them afterwards.
This commit is contained in:
committed by
Peter Hutterer
parent
cc2fff9c06
commit
37587bb99c
@@ -503,9 +503,13 @@ sinowealth_probe(struct ratbag_device *device)
|
||||
goto err;
|
||||
}
|
||||
|
||||
ratbag_profile_unref(profile);
|
||||
|
||||
return 0;
|
||||
|
||||
err:
|
||||
ratbag_profile_unref(profile);
|
||||
|
||||
free(drv_data);
|
||||
ratbag_set_drv_data(device, 0);
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user