swtpm: Free buffer to avoid memory leak in failure case

Free the allocated buffer in case of an error to avoid a memory leak.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
1 file changed