fixed memleak in AMF sender

This commit is contained in:
Roman Arutyunyan 2012-04-07 22:59:25 +04:00
parent dbbd320864
commit a43412edd1

View file

@ -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 */