Hello community,

here is the log from the commit of package gupnp-igd for openSUSE:Factory 
checked in at 2019-01-15 09:09:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gupnp-igd (Old)
 and      /work/SRC/openSUSE:Factory/.gupnp-igd.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gupnp-igd"

Tue Jan 15 09:09:40 2019 rev:30 rq:664082 version:0.2.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/gupnp-igd/gupnp-igd.changes      2018-03-08 
10:47:42.410489251 +0100
+++ /work/SRC/openSUSE:Factory/.gupnp-igd.new.28833/gupnp-igd.changes   
2019-01-15 09:09:42.326605893 +0100
@@ -1,0 +2,8 @@
+Sat Jan  5 22:51:40 UTC 2019 - [email protected]
+
+- Add gupnp-igd-free-GStaticMutex-in-AddRemoveData.patch: Free
+  GStaticMutex in AddRemoveData. Fixes a memory leak reported by
+  valgrind.
+- Modernize spec.
+
+-------------------------------------------------------------------

New:
----
  gupnp-igd-free-GStaticMutex-in-AddRemoveData.patch

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

Other differences:
------------------
++++++ gupnp-igd.spec ++++++
--- /var/tmp/diff_new_pack.OTgKb3/_old  2019-01-15 09:09:42.838605422 +0100
+++ /var/tmp/diff_new_pack.OTgKb3/_new  2019-01-15 09:09:42.838605422 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gupnp-igd
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -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 http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -25,6 +25,9 @@
 URL:            https://wiki.gnome.org/Projects/GUPnP
 Source:         
http://download.gnome.org/sources/gupnp-igd/0.2/%{name}-%{version}.tar.xz
 Source1:        baselibs.conf
+# PATCH-FIX-UPSTREAM gupnp-igd-free-GStaticMutex-in-AddRemoveData.patch -- 
Free GStaticMutex in AddRemoveData
+Patch0:         gupnp-igd-free-GStaticMutex-in-AddRemoveData.patch
+
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(glib-2.0) >= 2.26
 BuildRequires:  pkgconfig(gobject-2.0) >= 2.26
@@ -69,12 +72,13 @@
 to have a very simple API.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-%configure --disable-static
-
-make %{?_smp_mflags}
+%configure \
+       --disable-static \
+       %{nil}
+%make_build
 
 %install
 %make_install

++++++ gupnp-igd-free-GStaticMutex-in-AddRemoveData.patch ++++++
>From 761854febad29224c194fabb76c24f2701099c2f Mon Sep 17 00:00:00 2001
From: Matthew Waters <[email protected]>
Date: Fri, 10 Nov 2017 23:17:29 +1100
Subject: [PATCH] free GStaticMutex in AddRemoveData

Fixes a memory leak reported by valgrind

 128 bytes in 16 blocks are definitely lost in loss record 6,923 of 7,784
    at 0x4C2CE5F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
    by 0x7AEAEB8: g_malloc (gmem.c:94)
    by 0x7B02A25: g_slice_alloc (gslice.c:1025)
    by 0x7AB6D9A: g_mutex_new (gthread-deprecated.c:1461)
    by 0x7AB70B4: g_static_mutex_get_mutex_impl (gthread-deprecated.c:524)
    by 0xBE6E74F: ??? (in /usr/lib/libgupnp-igd-1.0.so.4.2.0)
    by 0x7AE5784: g_main_dispatch (gmain.c:3182)
    by 0x7AE5784: g_main_context_dispatch (gmain.c:3847)
    by 0x7AE5B4F: g_main_context_iterate.isra.30 (gmain.c:3920)
    by 0x7AE5E61: g_main_loop_run (gmain.c:4116)
    by 0xBE6ED7D: ??? (in /usr/lib/libgupnp-igd-1.0.so.4.2.0)
    by 0x7B0D2A4: g_thread_proxy (gthread.c:784)
    by 0x8028089: start_thread (in /usr/lib/libpthread-2.26.so)
    by 0x833524E: clone (in /usr/lib/libc-2.26.so)

https://bugzilla.gnome.org/show_bug.cgi?id=790165
---
 libgupnp-igd/gupnp-simple-igd-thread.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libgupnp-igd/gupnp-simple-igd-thread.c 
b/libgupnp-igd/gupnp-simple-igd-thread.c
index 8212f76..f38e9b7 100644
--- a/libgupnp-igd/gupnp-simple-igd-thread.c
+++ b/libgupnp-igd/gupnp-simple-igd-thread.c
@@ -450,6 +450,8 @@ free_add_remove_port_data (gpointer user_data)
   g_free (data->local_ip);
   g_free (data->description);
 
+  g_static_mutex_free (&data->mutex);
+
   g_slice_free (struct AddRemovePortData, data);
 }
 
-- 
2.18.1


Reply via email to