Use g_autofree for str1 in qemuAgentIOProcessData() and str1 and str2 in qemuAgentIOProcess(). Previous discussion can be found at https://www.redhat.com/archives/libvir-list/2020-March/msg01086.html Seeteena Thoufeek (1): qemu_agent.c: Use g_autofree in qemu_agent.c src/qemu/qemu_agent.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 1.8.3.1