HI,<br>
<br>
Here is my test program and I expected scan-build to detect resource leak.<br>
But it is not detecting resource leak. Will you please let me know why this defect is not detected?<br><br>#include <stdio.h><br>#include <stdlib.h><br><br>int func (char *r)<br>{<br> int x = 0;<br> char *p = NULL;<br>
<br> p = malloc(100);<br> return (0);<br>}<br><br>Command used is "scan-build -o . --use-cc=/usr/bin/gcc-4.5 gcc -c ~/test.c"<br><br>Rgds,<br>Suz