]> git.proxmox.com Git - swtpm.git/commit
swtpm_localca: Use return from main rather than exit to resolve ASAN issue
authorStefan Berger <stefanb@linux.ibm.com>
Wed, 29 Sep 2021 23:20:32 +0000 (19:20 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 30 Sep 2021 01:18:48 +0000 (21:18 -0400)
commit1c3417f70b6a94827cff3b59656b6b0d43831391
tree23b51d7958ed412e03bdb43c5d10a37f16c0bd50
parentb30a16ed3843bd822a0eac120454609c94db3252
swtpm_localca: Use return from main rather than exit to resolve ASAN issue

Use return rather than exit() when returning from main so that g_autofree'd
variables can be freed.

This resolves issue #568 that occurs with clang only.

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