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@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@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx