1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

source3/utils/log2pcaphex.c(main): fixed file descriptors leak.

One of leaks found by cppcheck:
[./source3/utils/log2pcaphex.c:367]: (error) Resource leak: out
This commit is contained in:
Slava Semushin 2009-05-23 01:10:05 +07:00 committed by Volker Lendecke
parent 5d2cd81645
commit 326237c4dd

View File

@ -364,5 +364,13 @@ int main (int argc, char **argv)
}
}
if (in != stdin) {
fclose(in);
}
if (out != stdout) {
fclose(out);
}
return 0;
}