check_memory: read freeing functions from file.
commitedf9c5ca6475cfdc56b4d9b1583c234153d06ed8
authorDan Carpenter <error27@gmail.com>
Sun, 22 Mar 2009 18:14:05 +0000 (22 21:14 +0300)
committerDan Carpenter <error27@gmail.com>
Sun, 22 Mar 2009 18:14:05 +0000 (22 21:14 +0300)
treeb245490ee2e3ed0dfe23f18abb600b82e828e872
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