Hello community,

here is the log from the commit of package blender for openSUSE:Factory checked 
in at 2019-12-05 17:33:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/blender (Old)
 and      /work/SRC/openSUSE:Factory/.blender.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "blender"

Thu Dec  5 17:33:48 2019 rev:125 rq:754268 version:2.81

Changes:
--------
--- /work/SRC/openSUSE:Factory/blender/blender.changes  2019-11-28 
10:14:23.375637330 +0100
+++ /work/SRC/openSUSE:Factory/.blender.new.4691/blender.changes        
2019-12-05 17:33:50.301452432 +0100
@@ -1,0 +2,13 @@
+Tue Nov 26 14:32:37 UTC 2019 - Hans-Peter Jansen <[email protected]>
+
+- Add patch 0001-Fix-T71680-_PyObject_LookupAttr-memory-leak.patch
+  Stefan's Python 3.6 compatibility patch revealed a memory leak,
+  that is plugged upstream in master already. Fix either with
+  applying this patch or make_python_3.6_compatible.patch.
+
+-------------------------------------------------------------------
+Tue Nov 26 10:45:21 UTC 2019 - Hans-Peter Jansen <[email protected]>
+
+- Enable OIDN again
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-T71680-_PyObject_LookupAttr-memory-leak.patch

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

Other differences:
------------------
++++++ blender.spec ++++++
--- /var/tmp/diff_new_pack.U3U230/_old  2019-12-05 17:33:51.461452267 +0100
+++ /var/tmp/diff_new_pack.U3U230/_new  2019-12-05 17:33:51.465452267 +0100
@@ -21,7 +21,7 @@
 %bcond_without collada
 %ifarch x86_64
 %bcond_without embree
-%bcond_with oidn
+%bcond_without oidn
 %else
 %bcond_with embree
 %bcond_with oidn
@@ -60,9 +60,11 @@
 Source8:        %{name}.appdata.xml
 Patch0:         0006-add_ppc64el-s390x_support.patch
 # only rely on patch availibility, if python_36 is requested
-%if %{with python_36}
+# this patch also fixes a memory leak
 Patch1:         make_python_3.6_compatible.patch
-%endif
+# PATCH-FIX-UPSTREAM 0001-Fix-T71680-_PyObject_LookupAttr-memory-leak.patch 
[email protected]
+# if the former patch isn't applied, fix underlying memory leak
+Patch2:         0001-Fix-T71680-_PyObject_LookupAttr-memory-leak.patch
 #!BuildIgnore:  libGLwM1
 BuildRequires:  OpenColorIO-devel
 BuildRequires:  OpenEXR-devel
@@ -223,6 +225,8 @@
 %patch0 -p1
 %if %{with python_36}
 %patch1 -p1
+%else
+%patch2 -p1
 %endif
 
 rm -rf extern/glew

++++++ 0001-Fix-T71680-_PyObject_LookupAttr-memory-leak.patch ++++++
>From 43eb34ec81fdf0479703a1c817b64a70dc93bbea Mon Sep 17 00:00:00 2001
From: Campbell Barton <[email protected]>
Date: Wed, 20 Nov 2019 17:53:22 +1100
Subject: [PATCH] Fix T71680: _PyObject_LookupAttr memory leak

---
 source/blender/python/intern/bpy_rna.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/blender/python/intern/bpy_rna.c 
b/source/blender/python/intern/bpy_rna.c
index 570c5012ed8..6bc7676973c 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -8688,6 +8688,7 @@ static PyObject *pyrna_register_class(PyObject 
*UNUSED(self), PyObject *py_class
   switch (_PyObject_LookupAttr(py_class, bpy_intern_str_register, 
&py_cls_meth)) {
     case 1: {
       PyObject *ret = PyObject_CallObject(py_cls_meth, NULL);
+      Py_DECREF(py_cls_meth);
       if (ret) {
         Py_DECREF(ret);
       }
@@ -8794,6 +8795,7 @@ static PyObject *pyrna_unregister_class(PyObject 
*UNUSED(self), PyObject *py_cla
   switch (_PyObject_LookupAttr(py_class, bpy_intern_str_unregister, 
&py_cls_meth)) {
     case 1: {
       PyObject *ret = PyObject_CallObject(py_cls_meth, NULL);
+      Py_DECREF(py_cls_meth);
       if (ret) {
         Py_DECREF(ret);
       }
-- 
2.24.0



Reply via email to