new (disabled) script: check_leaks.c
commitf7040c125fc2ea7cead4944afedf8ce9b96a7c97
authorDan Carpenter <error27@gmail.com>
Thu, 26 Mar 2009 08:06:00 +0000 (26 11:06 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 26 Mar 2009 08:06:00 +0000 (26 11:06 +0300)
treee8d0df91cabcc9aa4fd64900b6477f4c3e1fca94
parent2bed2b72e759fde770bff0ba40af76b1c5d89baa
new (disabled) script:  check_leaks.c

check_leaks() looks for local variables that aren't freed on the error
path.  It turns out not to be as useful as desired and I think that is
because so many other static analysis tools have found this type of bug.
Probably if we used  a different allocation function besides kmalloc()
it would find more useful bugs.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_leaks.c [new file with mode: 0644]
smatch.c