From 3e94cea9351b541dfeac13fed925e0794488f0c6 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 7 Nov 2013 11:09:48 +0100 Subject: free idmapped binary SIDs correctly Resolves: https://fedorahosted.org/sssd/ticket/2133 --- src/responder/nss/nsssrv_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/responder/nss') diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index ada2b64df..564d66f0d 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -4334,7 +4334,7 @@ static int nss_cmd_getbysid(enum sss_cli_command cmd, struct cli_ctx *cctx) /* If the body isn't a SID, fail */ err = sss_idmap_sid_to_bin_sid(nctx->idmap_ctx, sid_str, &bin_sid, &bin_sid_length); - talloc_free(bin_sid); + sss_idmap_free_bin_sid(nctx->idmap_ctx, bin_sid); if (err != IDMAP_SUCCESS) { DEBUG(SSSDBG_OP_FAILURE, ("sss_idmap_sid_to_bin_sid failed for [%s].\n", body)); -- cgit