Fix possible memory leak when malloc returns NULL
commit050516cfb042f020750f34bc4e386998843d2491
authorStathis Kamperis <ekamperi@auth.gr>
Sat, 3 Nov 2007 14:09:33 +0000 (3 16:09 +0200)
committerStathis Kamperis <ekamperi@auth.gr>
Sat, 3 Nov 2007 14:09:33 +0000 (3 16:09 +0200)
tree25f8e775817589d16a560e9806cfe0ed155ceb4e
parentbc2b86e5bd5e8649704cffbb8c0444c86baaa98f
Fix possible memory leak when malloc returns NULL
fsm_free() won't free states that haven't been added in fsm's
hash tables. So explicitly free them with state_free().
misc/fsm/test_stress.c