render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
3e5111
From 8405ec82963c74f0505455fa2be35208dafbf907 Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <8405ec82963c74f0505455fa2be35208dafbf907@dist-git>
3e5111
From: Martin Kletzander <mkletzan@redhat.com>
3e5111
Date: Tue, 25 Apr 2017 13:41:19 +0200
3e5111
Subject: [PATCH] Don't leak str in virDomainNetDefCoalesceParseXML
3e5111
3e5111
https://bugzilla.redhat.com/show_bug.cgi?id=1414627
3e5111
3e5111
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
3e5111
(cherry picked from commit f08e26a19a5ba1cb434627554ee037e5a1b97e83)
3e5111
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
---
3e5111
 src/conf/domain_conf.c | 1 +
3e5111
 1 file changed, 1 insertion(+)
3e5111
3e5111
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
3e5111
index f2801ec84..47022c329 100644
3e5111
--- a/src/conf/domain_conf.c
3e5111
+++ b/src/conf/domain_conf.c
3e5111
@@ -6798,6 +6798,7 @@ virDomainNetDefCoalesceParseXML(xmlNodePtr node,
3e5111
     ret->rx_max_coalesced_frames = tmp;
3e5111
 
3e5111
  cleanup:
3e5111
+    VIR_FREE(str);
3e5111
     ctxt->node = save;
3e5111
     return ret;
3e5111
 
3e5111
-- 
3e5111
2.12.2
3e5111