mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: conf: Don't leak snapshot image format conf variable
==20406== 4 bytes in 1 blocks are definitely lost in loss record 6 of 1,059 ==20406== at 0x4C2AF3F: malloc (vg_replace_malloc.c:299) ==20406== by 0x8F17D39: strdup (in /lib64/libc-2.24.so) ==20406== by 0x552C0E0: virStrdup (virstring.c:784) ==20406== by 0x54D3622: virConfGetValueString (virconf.c:945) ==20406== by 0x144E4692: virQEMUDriverConfigLoadFile (qemu_conf.c:687) ==20406== by 0x1452A744: qemuStateInitialize (qemu_driver.c:664) ==20406== by 0x55DB585: virStateInitialize (libvirt.c:770) ==20406== by 0x124570: daemonRunStateInit (libvirtd.c:881) ==20406== by 0x5532990: virThreadHelper (virthread.c:206) ==20406== by 0x8C82493: start_thread (in /lib64/libpthread-2.24.so) ==20406== by 0x8F7FA1E: clone (in /lib64/libc-2.24.so)
This commit is contained in:
parent
27a3fa715e
commit
2ef3aa8f63
@ -407,6 +407,7 @@ static void virQEMUDriverConfigDispose(void *obj)
|
||||
|
||||
VIR_FREE(cfg->saveImageFormat);
|
||||
VIR_FREE(cfg->dumpImageFormat);
|
||||
VIR_FREE(cfg->snapshotImageFormat);
|
||||
VIR_FREE(cfg->autoDumpPath);
|
||||
|
||||
virStringListFree(cfg->securityDriverNames);
|
||||
|
Loading…
x
Reference in New Issue
Block a user