Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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
vlc-1.1
Commits
ae62adc7
Commit
ae62adc7
authored
Oct 02, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: fix a memory leak in flac & mpga when attachments are present
parent
98a6a934
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
modules/demux/flac.c
modules/demux/flac.c
+4
-0
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+3
-0
No files found.
modules/demux/flac.c
View file @
ae62adc7
...
@@ -206,6 +206,10 @@ static void Close( vlc_object_t * p_this )
...
@@ -206,6 +206,10 @@ static void Close( vlc_object_t * p_this )
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
TAB_CLEAN
(
p_sys
->
i_seekpoint
,
p_sys
->
seekpoint
);
TAB_CLEAN
(
p_sys
->
i_seekpoint
,
p_sys
->
seekpoint
);
int
i
;
for
(
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
free
(
p_sys
->
attachments
[
i
]
);
TAB_CLEAN
(
p_sys
->
i_attachments
,
p_sys
->
attachments
);
TAB_CLEAN
(
p_sys
->
i_attachments
,
p_sys
->
attachments
);
/* Unneed module */
/* Unneed module */
...
...
modules/demux/mpeg/mpga.c
View file @
ae62adc7
...
@@ -347,6 +347,9 @@ static void Close( vlc_object_t * p_this )
...
@@ -347,6 +347,9 @@ static void Close( vlc_object_t * p_this )
if
(
p_sys
->
meta
)
vlc_meta_Delete
(
p_sys
->
meta
);
if
(
p_sys
->
meta
)
vlc_meta_Delete
(
p_sys
->
meta
);
if
(
p_sys
->
p_block_out
)
block_Release
(
p_sys
->
p_block_out
);
if
(
p_sys
->
p_block_out
)
block_Release
(
p_sys
->
p_block_out
);
int
i
;
for
(
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
free
(
p_sys
->
attachments
[
i
]
);
TAB_CLEAN
(
p_sys
->
i_attachments
,
p_sys
->
attachments
);
TAB_CLEAN
(
p_sys
->
i_attachments
,
p_sys
->
attachments
);
free
(
p_sys
);
free
(
p_sys
);
...
...
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