mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 07:08:01 +02: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;
|
return devices;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
for (int i = 0; i < ndev; i++)
|
||||||
|
free(namelist[i]);
|
||||||
|
free(namelist);
|
||||||
if (devices)
|
if (devices)
|
||||||
strv_free(devices);
|
strv_free(devices);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue