Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
02a64e24
Commit
02a64e24
authored
Oct 31, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/dvbinfo: do not use after free.
The param struct was used after it was freed.
parent
8139d078
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/dvbinfo/dvbinfo.c
examples/dvbinfo/dvbinfo.c
+3
-3
No files found.
examples/dvbinfo/dvbinfo.c
View file @
02a64e24
...
...
@@ -196,6 +196,7 @@ static void params_free(params_t *param)
free
(
param
->
input
);
free
(
param
->
output
);
free
(
param
->
summary
.
file
);
param
=
NULL
;
}
/* */
...
...
@@ -646,7 +647,6 @@ int main(int argc, char **pp_argv)
if
(
param
->
input
==
NULL
)
{
libdvbpsi_log
(
param
,
DVBINFO_LOG_ERROR
,
"No source given
\n
"
);
params_free
(
param
);
#ifdef HAVE_SYS_SOCKET_H
if
(
param
->
b_monitor
)
closelog
();
...
...
@@ -692,8 +692,6 @@ int main(int argc, char **pp_argv)
dvbinfo_close
(
param
);
/* cleanup */
params_free
(
param
);
fifo_wake
((
&
capture
)
->
fifo
);
fifo_wake
((
&
capture
)
->
empty
);
...
...
@@ -707,6 +705,8 @@ int main(int argc, char **pp_argv)
if
(
param
->
b_monitor
)
closelog
();
#endif
params_free
(
param
);
if
(
err
<
0
)
exit
(
EXIT_FAILURE
);
else
...
...
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