Fix string memory leaks.
commita5b555daf58dbb9252874e5d749ec1728b524fe9
authorDan Carpenter <error27@gmail.com>
Tue, 3 Mar 2009 06:27:10 +0000 (3 09:27 +0300)
committerDan Carpenter <error27@gmail.com>
Tue, 3 Mar 2009 06:27:10 +0000 (3 09:27 +0300)
tree36744a1d5002c3cfa7c882764555c0c61ec0991a
parent43cf4a5df24400a2d4a8c86f5cd405a3274e45b5
Fix string memory leaks.

Internally smatch now makes a copy of the string so that the check script
can now free their own memory and internally smatch can free it's own
memory.

Also the function to free all the ->possibles and ->pools wasn't working.
That is now fixed.

There are still some memory leaks in some of the check scripts that
allocate their own states.

Signed-off-by: Dan Carpenter <error27@gmail.com>
12 files changed:
check_locking.c
check_memory.c
check_null_deref.c
check_overflow.c
check_template.c
smatch.h
smatch_extra.c
smatch_helper.c
smatch_ignore.c
smatch_implied.c
smatch_slist.c
smatch_tracker.c