On Mon, 25 Oct 2010 10:13:26 -0200 Lucas De Marchi <[email protected]> wrote:
> Hi all, > > Find attached a file with a report of wrong usage of realloc. > Basically, if you do "a = realloc(a, ...)" and realloc fails, you lost > the previous pointer and then you cannot free that var anymore. There > can be some false positives, in case you previously assigned the > pointer to a tmp var instead of using the tmp var in the call to > realloc. > > > Note: this was obtained by realloc-spot-lost-pointer.cocci script in > svn. It uses the syntax of a patch, but the "-" in the beginning of a > line is there only to spot the callers... it's not a "-" as usually > intended in patches. > > > regards, > > Lucas De Marchi I feel like we went through something similar previously... -- Mike Blumenkrantz Zentific: Our boolean values are huge. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
