Hello community,

here is the log from the commit of package openvswitch for openSUSE:Factory 
checked in at 2018-11-27 10:44:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openvswitch (Old)
 and      /work/SRC/openSUSE:Factory/.openvswitch.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openvswitch"

Tue Nov 27 10:44:17 2018 rev:34 rq:652024 version:2.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/openvswitch/openvswitch.changes  2018-11-13 
17:30:28.473211980 +0100
+++ /work/SRC/openSUSE:Factory/.openvswitch.new.19453/openvswitch.changes       
2018-11-27 10:45:48.151987627 +0100
@@ -1,0 +2,6 @@
+Mon Nov 26 11:07:30 UTC 2018 - [email protected]
+
+- Backport upstream fix for python json parser memory leak (bsc#1116437)
+ * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch 
+
+-------------------------------------------------------------------

New:
----
  0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openvswitch.spec ++++++
--- /var/tmp/diff_new_pack.pRVSY2/_old  2018-11-27 10:45:56.055979512 +0100
+++ /var/tmp/diff_new_pack.pRVSY2/_new  2018-11-27 10:45:56.055979512 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 # needssslcertforbuild
 
@@ -53,6 +53,8 @@
 Source0:        http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
 Source1:        preamble
 Source89:       Module.supported.updates
+# PATCH-FIX-UPSTREAM: 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
+Patch0:         0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  graphviz
@@ -317,6 +319,7 @@
 
 %prep
 %setup -q -n openvswitch-%{version}
+%patch0 -p1
 
 %build
 set -- * .travis* .mailmap

++++++ 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch ++++++
>From e120ff1f8e4dbb0b889b26e0be082376a32090bc Mon Sep 17 00:00:00 2001
From: Eric Lapointe <[email protected]>
Date: Wed, 31 Oct 2018 12:11:42 -0400
Subject: [PATCH] python-c-ext: Fix memory leak in Parser_finish

The memory returned by json_parser_finish needs to be freed by the caller.

Signed-off-by: Eric Lapointe <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
 python/ovs/_json.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/ovs/_json.c b/python/ovs/_json.c
index 8b8402025..ef7bb4b8e 100644
--- a/python/ovs/_json.c
+++ b/python/ovs/_json.c
@@ -170,6 +170,7 @@ Parser_finish(json_ParserObject * self)
     json = json_parser_finish(self->_parser);
     self->_parser = NULL;
     obj = json_to_python(json);
+    json_destroy(json);
     return obj;
 }
 
-- 
2.16.4


Reply via email to