Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
aa79a7b2
Commit
aa79a7b2
authored
Nov 22, 2008
by
Christophe Mutricy
Browse files
Fix mem leak
Closes #2305
parent
d6f0bd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/rtsp/real_sdpplin.c
View file @
aa79a7b2
...
...
@@ -231,16 +231,18 @@ sdpplin_t *sdpplin_parse(char *data) {
sdpplin_t
*
desc
=
malloc
(
sizeof
(
sdpplin_t
));
sdpplin_stream_t
*
stream
;
char
*
buf
=
malloc
(
BUFLEN
)
;
char
*
decoded
=
malloc
(
BUFLEN
)
;
char
*
buf
=
NULL
;
char
*
decoded
=
NULL
;
int
handled
;
int
len
;
if
(
!
desc
)
return
NULL
;
buf
=
malloc
(
BUFLEN
);
if
(
!
buf
)
{
free
(
desc
);
return
NULL
;
}
decoded
=
malloc
(
BUFLEN
);
if
(
!
decoded
)
{
free
(
buf
);
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