Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
b95d28c3
Commit
b95d28c3
authored
Aug 06, 2015
by
Phil Sutter
Committed by
Stephen Hemminger
Aug 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/ss: add missing fclose() calls
Signed-off-by:
Phil Sutter
<
phil@nwl.cc
>
parent
532ca40a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
misc/ss.c
misc/ss.c
+5
-2
No files found.
misc/ss.c
View file @
b95d28c3
...
...
@@ -3025,6 +3025,7 @@ static int packet_show_line(char *buf, const struct filter *f, int fam)
static
int
packet_show
(
struct
filter
*
f
)
{
FILE
*
fp
;
int
rc
=
0
;
if
(
!
filter_af_get
(
f
,
AF_PACKET
)
||
!
(
f
->
states
&
(
1
<<
SS_CLOSE
)))
return
0
;
...
...
@@ -3036,9 +3037,10 @@ static int packet_show(struct filter *f)
if
((
fp
=
net_packet_open
())
==
NULL
)
return
-
1
;
if
(
generic_record_read
(
fp
,
packet_show_line
,
f
,
AF_PACKET
))
r
eturn
-
1
;
r
c
=
-
1
;
return
0
;
fclose
(
fp
);
return
rc
;
}
static
int
netlink_show_one
(
struct
filter
*
f
,
...
...
@@ -3215,6 +3217,7 @@ static int netlink_show(struct filter *f)
netlink_show_one
(
f
,
prot
,
pid
,
groups
,
0
,
0
,
0
,
rq
,
wq
,
sk
,
cb
);
}
fclose
(
fp
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment