1. 23 4月, 2019 2 次提交
    • S
      network: Convert to virErrorRestore/virErrorPreserveLast · e9d4912c
      Syed Humaid 提交于
      Replaced usage of virSaveLastError and virSetError/virFreeError with
      virErrorPreserveLast and virErrorRestore respectively.
      Signed-off-by: NSyed Humaid <syedhumaidbinharoon@gmail.com>
      e9d4912c
    • M
      vmx: Free @firmware in virVMXParseConfig · 528e26e7
      Michal Privoznik 提交于
      The @firmware string is allocated, but never freed.
      
       4 bytes in 1 blocks are definitely lost in loss record 1 of 44
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x76FB469: strdup (strdup.c:42)
          by 0x497B6DE: virStrdup (virstring.c:966)
          by 0x48F6FD3: virConfGetValueString (virconf.c:908)
          by 0x4B3E9B6: virVMXGetConfigStringHelper (vmx.c:736)
          by 0x4B3EA6B: virVMXGetConfigString (vmx.c:756)
          by 0x4B41AEA: virVMXParseConfig (vmx.c:1832)
          by 0x10B8E4: testCompareFiles (vmx2xmltest.c:79)
          by 0x10BAB8: testCompareHelper (vmx2xmltest.c:124)
          by 0x10D058: virTestRun (testutils.c:174)
          by 0x10CDDA: mymain (vmx2xmltest.c:288)
          by 0x10F11C: virTestMain (testutils.c:1096)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPino Toscano <ptoscano@redhat.com>
      528e26e7
  2. 20 4月, 2019 2 次提交
    • M
      libxlDriverConfigDispose: Free @configBaseDir too · 4f18b2d7
      Michal Privoznik 提交于
      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: NMichal Privoznik <mprivozn@redhat.com>
      4f18b2d7
    • M
      qemucaps2xmltest: Don't leak @binary · 8bf7cc5f
      Michal Privoznik 提交于
      There's no need to keep @binary around.
      virQEMUCapsInitGuestFromBinary() duplicates the string anyway.
      
       1,002 bytes in 36 blocks are definitely lost in loss record 54 of 59
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x796B1C7: vasprintf (vasprintf.c:73)
          by 0x4C3F2C6: virVasprintfInternal (virstring.c:740)
          by 0x4C3F3DC: virAsprintfInternal (virstring.c:761)
          by 0x13AFC9: testGetCaps (qemucaps2xmltest.c:105)
          by 0x13B200: testQemuCapsXML (qemucaps2xmltest.c:157)
          by 0x13B642: virTestRun (testutils.c:174)
          by 0x13B366: doCapsTest (qemucaps2xmltest.c:191)
          by 0x13FF2B: testQemuCapsIterate (testutilsqemu.c:941)
          by 0x13B427: mymain (qemucaps2xmltest.c:215)
          by 0x13D706: virTestMain (testutils.c:1096)
          by 0x13B489: main (qemucaps2xmltest.c:221)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8bf7cc5f
  3. 18 4月, 2019 12 次提交
  4. 17 4月, 2019 24 次提交