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:
parent
5d2cd81645
commit
326237c4dd
@ -364,5 +364,13 @@ int main (int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (in != stdin) {
|
||||
fclose(in);
|
||||
}
|
||||
|
||||
if (out != stdout) {
|
||||
fclose(out);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user