qrexec-agent: fix file leak on read error

This commit is contained in:
Vincent Penquerc'h 2013-12-28 11:12:31 -05:00 committed by Marek Marczykowski-Górecki
parent c14f810067
commit b2e84900a3

View File

@ -96,6 +96,7 @@ void wake_meminfo_writer() {
return;
}
if (fscanf(f, "%d", &pid) < 1) {
fclose(f);
/* no meminfo-writer found, ignoring */
return;
}