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
4974f83a
Commit
4974f83a
authored
Sep 25, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another bunch of memory leaks in realrtsp plugin
parent
036c9c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
3 deletions
+40
-3
modules/access/rtsp/real_sdpplin.c
modules/access/rtsp/real_sdpplin.c
+40
-3
No files found.
modules/access/rtsp/real_sdpplin.c
View file @
4974f83a
...
...
@@ -315,7 +315,7 @@ sdpplin_t *sdpplin_parse(char *data)
int
len
=
strchr
(
data
,
'\n'
)
-
data
;
memcpy
(
buf
,
data
,
len
+
1
);
buf
[
len
]
=
0
;
printf
(
"libreal: sdpplin: not handled: '%s'
\n
"
,
buf
);
printf
(
"libreal: sdpplin: not handled: '%s'
\n
"
,
buf
);
#endif
data
=
nl
(
data
);
}
...
...
@@ -328,6 +328,43 @@ sdpplin_t *sdpplin_parse(char *data)
void
sdpplin_free
(
sdpplin_t
*
description
)
{
/* TODO: free strings */
free
(
description
);
int
i
;
if
(
!
description
)
return
;
for
(
i
=
0
;
i
<
description
->
stream_count
;
i
++
)
{
if
(
description
->
stream
[
i
]
)
{
if
(
description
->
stream
[
i
]
->
id
)
free
(
description
->
stream
[
i
]
->
id
);
if
(
description
->
stream
[
i
]
->
bandwidth
)
free
(
description
->
stream
[
i
]
->
bandwidth
);
if
(
description
->
stream
[
i
]
->
range
)
free
(
description
->
stream
[
i
]
->
range
);
if
(
description
->
stream
[
i
]
->
length
)
free
(
description
->
stream
[
i
]
->
length
);
if
(
description
->
stream
[
i
]
->
rtpmap
)
free
(
description
->
stream
[
i
]
->
rtpmap
);
if
(
description
->
stream
[
i
]
->
mimetype
)
free
(
description
->
stream
[
i
]
->
mimetype
);
if
(
description
->
stream
[
i
]
->
stream_name
)
free
(
description
->
stream
[
i
]
->
stream_name
);
if
(
description
->
stream
[
i
]
->
mime_type
)
free
(
description
->
stream
[
i
]
->
mime_type
);
if
(
description
->
stream
[
i
]
->
mlti_data
)
free
(
description
->
stream
[
i
]
->
mlti_data
);
if
(
description
->
stream
[
i
]
->
rmff_flags
)
free
(
description
->
stream
[
i
]
->
rmff_flags
);
if
(
description
->
stream
[
i
]
->
asm_rule_book
)
free
(
description
->
stream
[
i
]
->
asm_rule_book
);
}
}
free
(
description
->
stream
);
if
(
description
->
owner
)
free
(
description
->
owner
);
if
(
description
->
session_name
)
free
(
description
->
session_name
);
if
(
description
->
session_info
)
free
(
description
->
session_info
);
if
(
description
->
uri
)
free
(
description
->
uri
);
if
(
description
->
email
)
free
(
description
->
email
);
if
(
description
->
phone
)
free
(
description
->
phone
);
if
(
description
->
connection
)
free
(
description
->
connection
);
if
(
description
->
bandwidth
)
free
(
description
->
bandwidth
);
if
(
description
->
title
)
free
(
description
->
title
);
if
(
description
->
author
)
free
(
description
->
author
);
if
(
description
->
copyright
)
free
(
description
->
copyright
);
if
(
description
->
keywords
)
free
(
description
->
keywords
);
if
(
description
->
asm_rule_book
)
free
(
description
->
asm_rule_book
);
if
(
description
->
abstract
)
free
(
description
->
abstract
);
if
(
description
->
range
)
free
(
description
->
range
);
free
(
description
);
}
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