Skip to content

Fix stale gzip preallocated pointer#34

Open
xintenseapple wants to merge 1 commit into
freenginx:defaultfrom
xintenseapple:fix/issue-25-gzip-stale-preallocated
Open

Fix stale gzip preallocated pointer#34
xintenseapple wants to merge 1 commit into
freenginx:defaultfrom
xintenseapple:fix/issue-25-gzip-stale-preallocated

Conversation

@xintenseapple

Copy link
Copy Markdown

Summary:

  • Clear the gzip filter preallocated-memory pointer immediately after freeing it in the normal deflate-end path.

Verification:

  • git diff --check; ./auto/configure --without-http_rewrite_module; make -j2; ./objs/nginx -t -p "$PWD" -c conf/nginx.conf

Fixes #25

@mdounin

mdounin commented Jun 10, 2026

Copy link
Copy Markdown
Member

The patch itself is trivial and looks fine, though I would like to include some additional details in the commit log. Suggested text can be found here:

https://freenginx.org/pipermail/nginx-devel/2026-June/001188.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gzip filter leaves ctx->preallocated stale after ngx_pfree()

2 participants