Skip to content

Commit aba1e3f

Browse files
committed
Merge pull request fdintino#60 from nkrobber/dev
bug fix: fdintino#58 Segfaults after a few nginx reloads
2 parents ed996c4 + 763b207 commit aba1e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_http_upload_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3050,7 +3050,7 @@ ngx_http_upload_merge_path_value(ngx_conf_t *cf, ngx_http_upload_path_t **path,
30503050
return NGX_CONF_OK;
30513051
}
30523052

3053-
*path = ngx_palloc(cf->pool, sizeof(ngx_http_upload_path_t));
3053+
*path = ngx_pcalloc(cf->pool, sizeof(ngx_http_upload_path_t));
30543054
if(*path == NULL) {
30553055
return NGX_CONF_ERROR;
30563056
}

0 commit comments

Comments
 (0)