--- ngx_http_fastcgi_module.c.orig	2019-12-12 13:49:38.030864200 -0800
+++ ngx_http_fastcgi_module.c	2019-12-12 13:51:01.906741300 -0800
@@ -722,6 +722,7 @@
 
     u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t));
     if (u->pipe == NULL) {
+	ngx_pfree(f);	/* release memory allocated to f */
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
