mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-29 00:18:58 +02:00
fixed memleak in AMF sender
This commit is contained in:
parent
dbbd320864
commit
a43412edd1
|
@ -12,6 +12,7 @@
|
|||
ngx_chain_t *__l; \
|
||||
ngx_buf_t *__b; \
|
||||
ngx_rtmp_core_srv_conf_t *__cscf; \
|
||||
ngx_int_t rc; \
|
||||
\
|
||||
__cscf = ngx_rtmp_get_module_srv_conf( \
|
||||
s, ngx_rtmp_core_module); \
|
||||
|
@ -40,7 +41,9 @@
|
|||
|
||||
#define NGX_RTMP_USER_END(s) \
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue