Skip to content
Unverified Commit af5a3ce4 authored by aszlig's avatar aszlig
Browse files

nginx: Fix memleak in nix-etag patch



The original patch introduced a new "real" variable which gets populated
(and allocated) via ngx_realpath(). It's properly freed in error
conditions but it won't be freed if ngx_http_set_etag returns
successfully.

Adding another ngx_free() just before returning fixes that memory leak.

I also fixed a small indentation issue along the way.

Signed-off-by: default avataraszlig <aszlig@nix.build>
parent 1da8eec0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment