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
3b2dcf44
Commit
3b2dcf44
authored
Aug 25, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/get_pcr_pid.c: free p_buffer on exit.
(cherry picked from commit 870c2f7d76e3a9c34dd54c75947496181eb727bf)
parent
b169eb0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
examples/get_pcr_pid.c
examples/get_pcr_pid.c
+4
-0
No files found.
examples/get_pcr_pid.c
View file @
3b2dcf44
...
...
@@ -172,6 +172,8 @@ int main( int i_argc, char **pp_argv )
p_pat_dvbpsi_fd
=
dvbpsi_AttachPAT
(
PATCallback
,
NULL
);
p_buffer
=
malloc
(
TS_SIZE
*
READ_ONCE
);
if
(
p_buffer
==
NULL
)
goto
out
;
for
(
;
;
)
{
...
...
@@ -195,7 +197,9 @@ int main( int i_argc, char **pp_argv )
i_ts_read
++
;
}
}
free
(
p_buffer
);
out:
close
(
i_fd
);
fprintf
(
stderr
,
"no PAT/PMT found
\n
"
);
...
...
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