mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
libxlDriverConfigDispose: Free @configBaseDir too
Allocated in libxlDriverConfigNew(), the @configBaseDir is never freed. 13 bytes in 1 blocks are definitely lost in loss record 36 of 125 at 0x483579F: malloc (vg_replace_malloc.c:299) by 0x8012469: strdup (strdup.c:42) by 0x52926DE: virStrdup (virstring.c:966) by 0x11D46B: libxlDriverConfigNew (libxl_conf.c:1749) by 0x114D78: testCompareXMLToDomConfig (libxlxml2domconfigtest.c:62) by 0x1152A3: testCompareXMLToDomConfigHelper (libxlxml2domconfigtest.c:160) by 0x115925: virTestRun (testutils.c:174) by 0x1154A4: mymain (libxlxml2domconfigtest.c:216) by 0x1179E9: virTestMain (testutils.c:1096) by 0x1154FD: main (libxlxml2domconfigtest.c:224) Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8bf7cc5fac
commit
4f18b2d755
@ -79,6 +79,7 @@ libxlDriverConfigDispose(void *obj)
|
|||||||
if (cfg->logger)
|
if (cfg->logger)
|
||||||
libxlLoggerFree(cfg->logger);
|
libxlLoggerFree(cfg->logger);
|
||||||
|
|
||||||
|
VIR_FREE(cfg->configBaseDir);
|
||||||
VIR_FREE(cfg->configDir);
|
VIR_FREE(cfg->configDir);
|
||||||
VIR_FREE(cfg->autostartDir);
|
VIR_FREE(cfg->autostartDir);
|
||||||
VIR_FREE(cfg->logDir);
|
VIR_FREE(cfg->logDir);
|
||||||
|
Loading…
Reference in New Issue
Block a user