Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
ortp
Commits
d099b0fb
Commit
d099b0fb
authored
May 03, 2022
by
DanmeiChen
Browse files
fix leak of ortp_malloc in bundle mode
parent
2e540a11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/rtpbundle.cc
src/rtpbundle.cc
+5
-2
No files found.
src/rtpbundle.cc
View file @
d099b0fb
...
...
@@ -369,12 +369,14 @@ bool RtpBundleCxx::dispatch(bool isRtp, mblk_t *m) {
bool
RtpBundleCxx
::
dispatchRtpMessage
(
mblk_t
*
m
)
{
RtpSession
*
session
=
checkForSession
(
m
,
true
);
if
(
session
==
NULL
)
if
(
session
==
NULL
)
{
freemsg
(
m
);
return
true
;
}
if
(
session
!=
primary
)
{
ortp_mutex_lock
(
&
session
->
rtp
.
gs
.
bundleq_lock
);
putq
(
&
session
->
rtp
.
gs
.
bundleq
,
dupmsg
(
m
)
);
putq
(
&
session
->
rtp
.
gs
.
bundleq
,
m
);
ortp_mutex_unlock
(
&
session
->
rtp
.
gs
.
bundleq_lock
);
return
true
;
...
...
@@ -435,5 +437,6 @@ bool RtpBundleCxx::dispatchRtcpMessage(mblk_t *m) {
return
false
;
}
freemsg
(
m
);
return
true
;
}
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