<font size=2 face="sans-serif"><br>
</font><tt><font size=3>Problem:<br>
<br>
* </font></tt><font size=3 face="sans-serif">Memory leak</font><tt><font size=3>
exists in reconfigure function when multipathd command "reconfigure"
is executed.<br>
<br>
Reasons:<br>
<br>
* </font></tt><font size=3>The following judgement condition is not satisfied
when there is no path </font><tt><font size=3>, free_pathvec is not called
to free the vector of vecs->pathvec:</font></tt>
<br><tt><font size=3><i> if
(VECTOR_SIZE(vecs->pathvec))</i></font></tt>
<br><tt><font size=3><i>
free_pathvec(vecs->pathvec, FREE_PATHS);</i><br>
<br>
* Then the vecs->pathvec is set to NULL, so the vector memory which
vecs->pathvec pointed to is leaked:</font></tt>
<br><tt><font size=3><i> vecs->pathvec
= NULL;</i></font></tt>
<br>
<br>
<br><font size=3>Please review the solutions to the problem in the attachment</font><font size=3 face="sans-serif">:</font>
<br>
<br>
<br><font size=3> </font>
<p><font size=2 color=#5f5f5f face="微软雅黑">唐军辉 </font><font size=2 color=#5f5f5f face="Arial">Tang
Junhui</font>
<p><font size=1 color=#5f5f5f face="微软雅黑">主机侧软件开发
</font><font size=1 color=#5f5f5f face="Arial">Host-side Software
Development</font><font size=1 color=#5f5f5f face="微软雅黑"><br>
无线研究院 / 虚拟化长沙开发部 </font><font size=1 color=#5f5f5f face="Arial">NIV
Changsha Development Dept/Wireless Product R&D Institute/Wireless Product
Operation</font>
<p>
<table>
<tr valign=top>
<td><img src=cid:_1_141F9A70141F83A0001FA3EF48257FE6>
<td><img src=cid:_1_141F9EB4141F9C74001FA3EF48257FE6><font size=1 color=#5f5f5f face="微软雅黑"><br>
湖南长沙岳麓区尖山路中电软件园8楼 410205</font><font size=1 color=#5f5f5f face="Arial"><br>
8/F,CEC Software Park,NO.39, Jianshan Road, Lugu High-tech Industrial<br>
Center, Yuelu District, Changsha, P.R. China</font><font size=1 color=#00a1e0 face="Arial"><br>
T</font><font size=1 color=#5f5f5f face="Arial">: 0731 xxxxx</font><font size=1 color=#00a1e0 face="Arial"><br>
M</font><font size=1 color=#5f5f5f face="Arial">: +86 15616251617</font><font size=1 color=#00a1e0 face="Arial"><br>
E</font><font size=1 color=#5f5f5f face="Arial">: tangjunhui@zte.com.cn</font><font size=1 color=blue face="Arial"><u><br>
</u></font><a href=http://www.zte.com.cn/><font size=1 color=#00a1e0 face="Arial"><u>www.zte.com.cn</u></font></a></table>
<br>
<br><pre><font color="blue">
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
</font></pre><br>