From 1ce94fbd1e62773f31464565963eef1d2052a3e2c5c31c79dfab73e389aad4e5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 9 Mar 2017 08:40:03 +0000 Subject: [PATCH] Accepting request 477850 from home:Zaitor:branches:network Add upstream patch OBS-URL: https://build.opensuse.org/request/show/477850 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=21 --- libmbim-plug-mem-leak.patch | 22 ++++++++++++++++++++++ libmbim.changes | 6 ++++++ libmbim.spec | 5 ++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 libmbim-plug-mem-leak.patch diff --git a/libmbim-plug-mem-leak.patch b/libmbim-plug-mem-leak.patch new file mode 100644 index 0000000..b884cdc --- /dev/null +++ b/libmbim-plug-mem-leak.patch @@ -0,0 +1,22 @@ +From c68b1375f3729968a1d83feecc6df0f6cfd81746 Mon Sep 17 00:00:00 2001 +From: Aleksander Morgado +Date: Wed, 1 Feb 2017 23:05:40 +0100 +Subject: libmbim-glib,device: plug memleak in open timeout + +(cherry picked from commit f6249fee1710484a749a5b919ca130d36d64eb2d) + +diff --git a/src/libmbim-glib/mbim-device.c b/src/libmbim-glib/mbim-device.c +index a001940..c869ad7 100644 +--- a/src/libmbim-glib/mbim-device.c ++++ b/src/libmbim-glib/mbim-device.c +@@ -1281,6 +1281,7 @@ open_message_ready (MbimDevice *self, + + /* No more seconds left in the timeout... return error */ + } ++ g_error_free (error); + + g_debug ("open operation timed out: closed"); + self->priv->open_status = OPEN_STATUS_CLOSED; +-- +cgit v0.10.2 + diff --git a/libmbim.changes b/libmbim.changes index a723ee4..683d07e 100644 --- a/libmbim.changes +++ b/libmbim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 1 17:53:28 UTC 2017 - zaitor@opensuse.org + +- Add libmbim-plug-mem-leak.patch: libmbim-glib: device: Plug + memory leak in open timeout, patch from upstream stable git. + ------------------------------------------------------------------- Mon Jul 11 20:03:00 UTC 2016 - bruno@ioda-net.ch diff --git a/libmbim.spec b/libmbim.spec index e5510ec..81920b7 100644 --- a/libmbim.spec +++ b/libmbim.spec @@ -1,7 +1,7 @@ # # spec file for package libmbim # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands # # All modifications and additions to the file contributed by third parties @@ -25,6 +25,8 @@ License: GPL-2.0+ and LGPL-2.0+ Group: Productivity/Networking/System Url: http://www.freedesktop.org/wiki/Software/libmbim/ Source: http://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM libmbim-plug-mem-leak.patch zaitor@opensuse.org -- Plug memory leak in open timeout +Patch0: libmbim-plug-mem-leak.patch BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.32 BuildRequires: pkgconfig(gobject-2.0) @@ -67,6 +69,7 @@ This package contain de bash completion command for mbimcli tools. %prep %setup -q +%patch0 -p1 %build %configure \