]> git.proxmox.com Git - swtpm.git/commit
swtpm: Add another exit label to avoid gcc -fanalyzer false positive
authorStefan Berger <stefanb@linux.ibm.com>
Wed, 5 Oct 2022 00:22:34 +0000 (20:22 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 5 Oct 2022 11:37:14 +0000 (07:37 -0400)
commit87ce53ffc4f1254313ba42cbf5637af4d947f5f7
tree9496599ccff241a14577e61edbcaf995766cc7e5
parent7d79ecd694db05f1592ce86a42fb908e9df50ae0
swtpm: Add another exit label to avoid gcc -fanalyzer false positive

Move existing exit label before the return statement and add another
label that includes the free(filebuffer). This avoids a false positive
by 'gcc -fanalyzer' that seems to think that free(filebuffer)
would double-free filebuffer after filebuffer = realloc(tmp, ..)
failure.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/swtpm/key.c