diff --git a/src/core/nginx.c b/src/core/nginx.c index e81e7af74..045977691 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -595,6 +595,7 @@ ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv) + cycle->listening.nelts * (NGX_INT32_LEN + 1) + 2, cycle->log); if (var == NULL) { + ngx_free(env); return NGX_INVALID_PID; }