Re: [PATCH] tests: Fix memory leak in tpm-util.c

2021-01-24 Thread Stefan Berger
On 1/21/21 10:44 AM, Philippe Mathieu-Daudé wrote: On 1/15/21 9:46 PM, Stefan Berger wrote: This patch fixes the following memory leak detected by asan: Indirect leak of 560320 byte(s) in 136 object(s) allocated from: #0 0x556b3b3f9b57 in calloc (/home/stefanb/tmp/qemu-tip/build/tests/qte

Re: [PATCH] tests: Fix memory leak in tpm-util.c

2021-01-21 Thread Philippe Mathieu-Daudé
On 1/15/21 9:46 PM, Stefan Berger wrote: > This patch fixes the following memory leak detected by asan: > > Indirect leak of 560320 byte(s) in 136 object(s) allocated from: > #0 0x556b3b3f9b57 in calloc > (/home/stefanb/tmp/qemu-tip/build/tests/qtest/tpm-crb-swtpm-test+0x23fb57) > #1 0x15

[PATCH] tests: Fix memory leak in tpm-util.c

2021-01-15 Thread Stefan Berger
This patch fixes the following memory leak detected by asan: Indirect leak of 560320 byte(s) in 136 object(s) allocated from: #0 0x556b3b3f9b57 in calloc (/home/stefanb/tmp/qemu-tip/build/tests/qtest/tpm-crb-swtpm-test+0x23fb57) #1 0x152b0e96b9b0 in g_malloc0 (/lib64/libglib-2.0.so.0+0x58