Compare commits

...

2 Commits
rawhide ... f31

Author SHA1 Message Date
Jan Rybar 9942202199 Forgot to stage .spec file in previous commit 2019-10-28 13:47:39 +01:00
Jan Rybar ac783ee6fe jsauthority memleak fix
pkttyagent: unread input flushed on terminal restore
2019-10-28 13:44:30 +01:00
3 changed files with 38 additions and 1 deletions

19
jsauthority-memleak.patch Normal file
View File

@ -0,0 +1,19 @@
commit 28e3a6653d8c3777b07e0128a0d97d46e586e311
Author: Jan Rybar <jrybar@redhat.com>
Date: Tue Oct 8 13:28:18 2019 +0000
jsauthority: Fix two minor memory leaks
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 9b752d1..e97b8aa 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -567,6 +567,8 @@ polkit_backend_js_authority_finalize (GObject *object)
g_strfreev (authority->priv->rules_dirs);
delete authority->priv->ac;
+ delete authority->priv->js_global;
+ delete authority->priv->js_polkit;
JS_DestroyContext (authority->priv->cx);
/* JS_ShutDown (); */

View File

@ -0,0 +1,12 @@
diff -up ./src/programs/pkttyagent.c.ori ./src/programs/pkttyagent.c
--- ./src/programs/pkttyagent.c.ori 2019-09-27 16:52:24.377434038 +0200
+++ ./src/programs/pkttyagent.c 2019-09-27 16:53:01.743875350 +0200
@@ -56,7 +56,7 @@ static void tty_handler(int signal)
if (tty_flags_saved)
{
- tcsetattr (fileno (tty), TCSAFLUSH, &ts);
+ tcsetattr (fileno (tty), TCSADRAIN, &ts);
}
kill(getpid(), signal);

View File

@ -6,13 +6,15 @@
Summary: An authorization framework
Name: polkit
Version: 0.116
Release: 4%{?dist}
Release: 4%{?dist}.1
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/polkit
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
Patch1: polkit-0.116-pkttyagent-sigttou-bg-job.patch
Patch2: pkttyagent-tcsaflush-batch-erase.patch
Patch3: jsauthority-memleak.patch
BuildRequires: gcc-c++
BuildRequires: glib2-devel >= 2.30.0
@ -176,6 +178,10 @@ exit 0
%{_libdir}/girepository-1.0/*.typelib
%changelog
* Mon Oct 28 2019 Jan Rybar <jrybar@redhat.com> - 0.116-4.1
- jsauthority memleak fix
- pkttyagent: unread input flushed on terminal restore
* Sun Sep 08 2019 Kalev Lember <klember@redhat.com> - 0.116-4
- Rebuilt for mozjs60 s390x fixes