Blame SOURCES/polkit-0.112-Polkit.spawn-leak.patch

beed5f
commit 1986e443b170240e9ce4a34726b7fa6c55b3601c
beed5f
Author: Miloslav Trmač <mitr@redhat.com>
beed5f
Date:   Sat Dec 7 04:21:10 2013 +0100
beed5f
beed5f
    Fix a memory leak
beed5f
    
beed5f
    https://bugs.freedesktop.org/show_bug.cgi?id=72426
beed5f
beed5f
diff --git a/src/polkitbackend/polkitbackendjsauthority.c b/src/polkitbackend/polkitbackendjsauthority.c
beed5f
index bc2fe22..c3885a9 100644
beed5f
--- a/src/polkitbackend/polkitbackendjsauthority.c
beed5f
+++ b/src/polkitbackend/polkitbackendjsauthority.c
beed5f
@@ -1363,7 +1363,6 @@ js_polkit_spawn (JSContext  *cx,
beed5f
           goto out;
beed5f
 	}
beed5f
       s = JS_EncodeString (cx, JSVAL_TO_STRING (elem_val));
beed5f
-      s = JS_EncodeString (cx, JSVAL_TO_STRING (elem_val));
beed5f
       argv[n] = g_strdup (s);
beed5f
       JS_free (cx, s);
beed5f
     }