[cfe-dev] Potential memory leak with asprintf calls

Madhu madhu013 at gmail.com
Sun Nov 14 00:22:12 PST 2010


Hi all,

I came across with potential memory leak with asprintf calls,
since asprintf calls are used upon series of if (condition) expression,
different strings are created with the asprintf call.

But the probelm is when the condition is checked for asprintf calls
for -1 the error I am  trying to free the char pointer their also and also
out of the condition.  Even though the potential memory leak
i am using gcc-4.4 and powerpc to run the application.

guidence needed

thanks
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101114/dca7a135/attachment.html>


More information about the cfe-dev mailing list