hi, garry:<div><br></div><div> 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.</div>
<div><br><br><div class="gmail_quote">On Thu, Dec 23, 2010 at 11:08 AM, garry.lgr <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi~~, now I'm reading the code of nginx-0.9.1.<br>
<br>
I readed the code "ctx->srv_conf = cscfp[s]->ctx->srv_conf" at line<br>
593 in the ngx_http.c .<br>
but I really don't understand it's meaning.<br>
<br>
Who can tell me why do this? I find it will make memory leak.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,160626,160626#msg-160626" target="_blank">http://forum.nginx.org/read.php?2,160626,160626#msg-160626</a><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br>
</div>