unwind: catch additional bugs
commitd01fded26d224c853298d0358238e52306473d0a
authorDan Carpenter <error27@gmail.com>
Thu, 6 Apr 2023 09:33:40 +0000 (6 12:33 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 6 Apr 2023 09:33:40 +0000 (6 12:33 +0300)
tree0c998dad83d134eae098f7b087f7dea4798eb9bb
parentb530d6a3a9b2540a3684061887790323da019a26
unwind: catch additional bugs

Ok, this clears up the mystery with the &unknown state.  Before if the
function was freed on some paths then it was considered freed.  That was
kind of dumb but it mostly worked because we were mostly dealing with split
apart error paths.

Now the new system is "if we have a simple release set the state to
&release but if we are lost set the state to &unknown and that silences
all the paths."  &unknown is more powerful than &release for silencing
warnings.

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