Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bea81bc1
Commit
bea81bc1
authored
Mar 16, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Mar 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: fix a memory leak
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
84cb607a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+3
-3
No files found.
modules/demux/mkv/mkv.cpp
View file @
bea81bc1
...
...
@@ -192,11 +192,10 @@ static int Open( vlc_object_t * p_this )
// test whether this file belongs to our family
const
uint8_t
*
p_peek
;
bool
file_ok
=
false
;
#warning Memory leak!
std
::
string
s_url
=
vlc_path2uri
(
s_filename
.
c_str
(),
"file"
);
char
*
psz_url
=
vlc_path2uri
(
s_filename
.
c_str
(),
"file"
);
stream_t
*
p_file_stream
=
stream_UrlNew
(
p_demux
,
s_url
.
c_str
()
);
psz_url
);
/* peek the begining */
if
(
p_file_stream
&&
stream_Peek
(
p_file_stream
,
&
p_peek
,
4
)
>=
4
...
...
@@ -230,6 +229,7 @@ static int Open( vlc_object_t * p_this )
}
msg_Dbg
(
p_demux
,
"the file '%s' cannot be opened"
,
s_filename
.
c_str
()
);
}
free
(
psz_url
);
}
}
}
...
...
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