srs_app_rtc_conn: fix illegal memory access
Regression since 20f6cd595c
The early code might meet bridge is empty when
there is no bridge(e.x. rtc to rtc). Then srs_freep
will free the brige.
Remove this code that seems redundant.
Signed-off-by: Jack Lau <jacklau1222@qq.com>
This commit is contained in:
parent
3948f0d4fe
commit
d00dbf4c8d
|
|
@ -1310,11 +1310,6 @@ srs_error_t SrsRtcPublishStream::initialize(ISrsRequest *r, SrsRtcSourceDescript
|
|||
return srs_error_wrap(err, "create bridge");
|
||||
}
|
||||
|
||||
if ((err = bridge->initialize(r)) != srs_success) {
|
||||
srs_freep(bridge);
|
||||
return srs_error_wrap(err, "create bridge");
|
||||
}
|
||||
|
||||
source_->set_bridge(bridge);
|
||||
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user