Hello,

please see this simple patch.  The bug was found by Paul Wayper.

Thanks!
<mailto:[email protected]>
>From 12a5e4230730072e9c7a37fffa5e40fe0ea86f9d Mon Sep 17 00:00:00 2001
From: Pavel Reichl <[email protected]>
Date: Wed, 6 May 2015 05:30:07 -0400
Subject: [PATCH] sbus: sbus_opath_hash_add_iface free tmp talloc ctx

---
 src/sbus/sssd_dbus_interface.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/sbus/sssd_dbus_interface.c b/src/sbus/sssd_dbus_interface.c
index d4ddce0acc710dba0da2a6b0a036c282fa208e3d..1fd55904dc098c8ae5f8f5ed6f4e8e432fd074f6 100644
--- a/src/sbus/sssd_dbus_interface.c
+++ b/src/sbus/sssd_dbus_interface.c
@@ -496,10 +496,9 @@ done:
         talloc_steal(item, iface);
         talloc_steal(table, item);
         *_path_known = path_known;
-    } else {
-        talloc_free(item);
     }
 
+    talloc_free(tmp_ctx);
     return ret;
 }
 
-- 
2.1.0

_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to