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
aa79a7b2
Commit
aa79a7b2
authored
Nov 22, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mem leak
Closes #2305
parent
d6f0bd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/access/rtsp/real_sdpplin.c
modules/access/rtsp/real_sdpplin.c
+4
-2
No files found.
modules/access/rtsp/real_sdpplin.c
View file @
aa79a7b2
...
@@ -231,16 +231,18 @@ sdpplin_t *sdpplin_parse(char *data) {
...
@@ -231,16 +231,18 @@ sdpplin_t *sdpplin_parse(char *data) {
sdpplin_t
*
desc
=
malloc
(
sizeof
(
sdpplin_t
));
sdpplin_t
*
desc
=
malloc
(
sizeof
(
sdpplin_t
));
sdpplin_stream_t
*
stream
;
sdpplin_stream_t
*
stream
;
char
*
buf
=
malloc
(
BUFLEN
)
;
char
*
buf
=
NULL
;
char
*
decoded
=
malloc
(
BUFLEN
)
;
char
*
decoded
=
NULL
;
int
handled
;
int
handled
;
int
len
;
int
len
;
if
(
!
desc
)
return
NULL
;
if
(
!
desc
)
return
NULL
;
buf
=
malloc
(
BUFLEN
);
if
(
!
buf
)
{
if
(
!
buf
)
{
free
(
desc
);
free
(
desc
);
return
NULL
;
return
NULL
;
}
}
decoded
=
malloc
(
BUFLEN
);
if
(
!
decoded
)
{
if
(
!
decoded
)
{
free
(
buf
);
free
(
buf
);
free
(
desc
);
free
(
desc
);
...
...
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