loop: fix NULL dereference if mount fails
[safe/jmp/linux-2.6] / fs / cifs / cifsencrypt.c
index 7c98095..7efe174 100644 (file)
@@ -373,6 +373,7 @@ calc_exit_2:
           compare with the NTLM example */
        hmac_md5_final(ses->server->ntlmv2_hash, pctxt);
 
+       kfree(pctxt);
        return rc;
 }