mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed memleak in AMF sender
This commit is contained in:
@ -12,6 +12,7 @@
|
|||||||
ngx_chain_t *__l; \
|
ngx_chain_t *__l; \
|
||||||
ngx_buf_t *__b; \
|
ngx_buf_t *__b; \
|
||||||
ngx_rtmp_core_srv_conf_t *__cscf; \
|
ngx_rtmp_core_srv_conf_t *__cscf; \
|
||||||
|
ngx_int_t rc; \
|
||||||
\
|
\
|
||||||
__cscf = ngx_rtmp_get_module_srv_conf( \
|
__cscf = ngx_rtmp_get_module_srv_conf( \
|
||||||
s, ngx_rtmp_core_module); \
|
s, ngx_rtmp_core_module); \
|
||||||
@ -40,7 +41,9 @@
|
|||||||
|
|
||||||
#define NGX_RTMP_USER_END(s) \
|
#define NGX_RTMP_USER_END(s) \
|
||||||
ngx_rtmp_prepare_message(s, &__h, NULL, __l); \
|
ngx_rtmp_prepare_message(s, &__h, NULL, __l); \
|
||||||
return ngx_rtmp_send_message(s, __l, 0); \
|
rc = ngx_rtmp_send_message(s, __l, 0); \
|
||||||
|
ngx_rtmp_free_shared_bufs(__cscf, __l); \
|
||||||
|
return rc;
|
||||||
|
|
||||||
|
|
||||||
/* Protocol control messages */
|
/* Protocol control messages */
|
||||||
|
Reference in New Issue
Block a user