[cfe-dev] scan-build - need help
Ted Kremenek
kremenek at apple.com
Fri Oct 21 11:07:50 PDT 2011
Hi Suzzane,
This looks like the same message you sent a while back (that I responded to). Is this still an issue?
Cheers,
Ted
On Oct 14, 2011, at 7:07 AM, Suzzane G wrote:
> HI,
>
> Here is my test program and I expected scan-build to detect resource leak.
> But it is not detecting resource leak. Will you please let me know why this defect is not detected?
>
> #include <stdio.h>
> #include <stdlib.h>
>
> int func (char *r)
> {
> int x = 0;
> char *p = NULL;
>
> p = malloc(100);
> return (0);
> }
>
> Command used is "scan-build -o . --use-cc=/usr/bin/gcc-4.5 gcc -c ~/test.c"
>
> Rgds,
> Suz
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list