cheak_leaks: handle returning conditionals
commitdee264877a3810da9fe526991a82cb340e2e857e
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Mar 2018 10:45:18 +0000 (26 13:45 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Mar 2018 10:48:51 +0000 (26 13:48 +0300)
tree56fae448347626c22fcf9aa7a47c46d25bacd9f9
parente6f1e5f5f1ff3c49c7e0c2455cba53a1df71ca43
cheak_leaks: handle returning conditionals

Smatch always complained if you did stuff like:

return foo ? &foo->bar : NULL;

but it shouldn't.

Reported-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_leaks.c