s3:ntlm_auth: fix memory leak in the raw ntlmssp code path
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Dec 2010 04:50:59 +0000 (05:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Dec 2010 16:39:03 +0000 (17:39 +0100)
metze

source3/utils/ntlm_auth.c

index 9f0c839186c5044611ec22b0ac04365a4bbd26e9..666bb5bbea6053ad0eba31190262bc71124f4514 100644 (file)
@@ -1319,6 +1319,8 @@ static void manage_gss_spnego_request(struct ntlm_auth_state *state,
            && (strncmp((char *)token.data, "NTLMSSP", 7) == 0)) {
                char *reply;
 
+               data_blob_free(&token);
+
                DEBUG(10, ("Could not parse GSS-SPNEGO, trying raw "
                           "ntlmssp\n"));