summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/nginx.c1
1 files changed, 1 insertions, 0 deletions
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;
}