mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 23:50:45 +01:00
tools/record: free the namelist when we're done
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e511f96201
commit
4da9349a91
1 changed files with 3 additions and 0 deletions
|
|
@ -2064,6 +2064,9 @@ all_devices(void)
|
|||
return devices;
|
||||
|
||||
error:
|
||||
for (int i = 0; i < ndev; i++)
|
||||
free(namelist[i]);
|
||||
free(namelist);
|
||||
if (devices)
|
||||
strv_free(devices);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue