qrexec-agent: fix file leak on read error
This commit is contained in:
parent
c14f810067
commit
b2e84900a3
@ -96,6 +96,7 @@ void wake_meminfo_writer() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (fscanf(f, "%d", &pid) < 1) {
|
if (fscanf(f, "%d", &pid) < 1) {
|
||||||
|
fclose(f);
|
||||||
/* no meminfo-writer found, ignoring */
|
/* no meminfo-writer found, ignoring */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user