From a1daa6d7116a209f86a072f451be3ee461f77aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com> Date: Wed, 30 Oct 2013 15:24:54 +0100 Subject: [PATCH] free sid obtained from sss_idmap_unix_to_sid()
--- src/providers/ldap/ldap_id.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 624533301949839cdc6a4c64f063aee4ee006749..fad1585331b7f0240770d2dc5a2e89788d2ad4da 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -139,6 +139,7 @@ struct tevent_req *users_get_send(TALLOC_CTX *memctx, attr_name = ctx->opts->user_map[SDAP_AT_USER_OBJECTSID].name; ret = sss_filter_sanitize(state, sid, &clean_name); + talloc_zfree(sid); if (ret != EOK) { goto fail; } @@ -508,6 +509,7 @@ struct tevent_req *groups_get_send(TALLOC_CTX *memctx, attr_name = ctx->opts->group_map[SDAP_AT_GROUP_OBJECTSID].name; ret = sss_filter_sanitize(state, sid, &clean_name); + talloc_zfree(sid); if (ret != EOK) { goto fail; } -- 1.7.11.7
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/sssd-devel