check_memory: read freeing functions from file.
commit02c4f1b9b390e335e28951700ebf529ee3ec9c96
authorDan Carpenter <error27@gmail.com>
Mon, 23 Mar 2009 07:50:47 +0000 (23 10:50 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 23 Mar 2009 07:50:47 +0000 (23 10:50 +0300)
tree55b7e28321595b7a68005eccc0b8949ea40461e2
parenta5630b17811265ac7c0fe89ac22c143e42775db2
check_memory: read freeing functions from file.

The check_frees_argument can be used to generate a list of functions
which free their argument.  Use this list instead of simply kfree by
itself.

Also it now prints an error if freed memory gets dereferenced.  The
downside is that adding this makes the check slower than I'd like.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_memory.c