s4:auth/session.c - free "group_string" when not needed
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 24 Jun 2010 17:48:07 +0000 (20:48 +0300)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 30 Jun 2010 07:17:06 +0000 (09:17 +0200)
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
source4/auth/session.c

index 29ba13e536befa0727f399a4bb2d65966ea78201..1be98742df06ac1b973c0f22c1946bd4a6c37459 100644 (file)
@@ -178,7 +178,7 @@ _PUBLIC_ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx,
 
                group_dn = talloc_asprintf(tmp_ctx, "<SID=%s>", group_string);
                NT_STATUS_HAVE_NO_MEMORY_AND_FREE(group_dn, server_info);
-
+               talloc_free(group_string);
                group_blob = data_blob_string_const(group_dn);
 
                /* This function takes in memberOf values and expands