hi, garry:<div><br></div><div>  That code is for changing the context of &#39;cf&#39;, and make the &#39;cf&#39; appropriate for the function &#39;merge_srv_conf&#39;. I can&#39;t see any thing matters can cause memory leak unless the &quot;merge_srv_conf&quot; 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">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi~~, now I&#39;m reading the code of nginx-0.9.1.<br>
<br>
I readed the  code  &quot;ctx-&gt;srv_conf = cscfp[s]-&gt;ctx-&gt;srv_conf&quot;  at line<br>
593 in the ngx_http.c .<br>
but I really don&#39;t understand it&#39;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>