what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

eagle sbc sbc19861004 at gmail.com
Thu Dec 23 06:50:26 MSK 2010


hi, garry:

  That code is for changing the context of 'cf', and make the 'cf'
appropriate for the function 'merge_srv_conf'. I can't see any thing matters
can cause memory leak unless the "merge_srv_conf" function that the modules
provide did this.


On Thu, Dec 23, 2010 at 11:08 AM, garry.lgr <nginx-forum at nginx.us> wrote:

> hi~~, now I'm reading the code of nginx-0.9.1.
>
> I readed the  code  "ctx->srv_conf = cscfp[s]->ctx->srv_conf"  at line
> 593 in the ngx_http.c .
> but I really don't understand it's meaning.
>
> Who can tell me why do this? I find it will make memory leak.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,160626,160626#msg-160626
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101223/85455e19/attachment-0001.html>


More information about the nginx mailing list