examples: Fix memory leaked by device discovery
https://bugs.freedesktop.org/show_bug.cgi?id=105427
This commit is contained in:
parent
58ba9b02ed
commit
7ff667f58d
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ int main(void)
|
||||||
|
|
||||||
ddev = discover_device(discovered_devs);
|
ddev = discover_device(discovered_devs);
|
||||||
if (!ddev) {
|
if (!ddev) {
|
||||||
|
fp_dscv_devs_free(discovered_devs);
|
||||||
fprintf(stderr, "No devices detected.\n");
|
fprintf(stderr, "No devices detected.\n");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue