Blame SOURCES/polkit-0.115-jsauthority-memleak.patch

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