mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
Fix missing call to closedir
This commit is contained in:
parent
e510d5231b
commit
8c4bcd2a8d
@ -106,8 +106,10 @@ static int uses_rfcomm(char *path, char *dev)
|
|||||||
int len = readlink(de->d_name, link, sizeof(link));
|
int len = readlink(de->d_name, link, sizeof(link));
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
link[len] = 0;
|
link[len] = 0;
|
||||||
if (strstr(link, dev))
|
if (strstr(link, dev)) {
|
||||||
|
closedir(dir);
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user