Closed AreaZR closed 2 months ago
cgiGetVariable and friends return an strdup string, which is important when assigning after clearing the variables in the array. the problem is that this memory is just leaked.
This is not a problem because the CGI programs are short-lived and all process memory is freed on exit.
We chose this approach over an explicit memory pool or other mechanism to fix certain bugs.
cgiGetVariable and friends return an strdup string, which is important when assigning after clearing the variables in the array. the problem is that this memory is just leaked.