--- ngx_http_flv_module.c.orig	2019-12-12 13:52:21.503948800 -0800
+++ ngx_http_flv_module.c	2019-12-12 13:53:32.479859700 -0800
@@ -224,6 +224,7 @@
 
     b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
     if (b->file == NULL) {
+	ngx_pfree(b);	/* release previous memory allocation to b */
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
