Hi, while doing some work with Address Sanitizer, I noticed what appears to be a memory leak in the DIGEST-MD5 client mechanism.
In digestmd5_client_mech_step1, on line 4257, is seems that the mechanism may allocate a new string on text->realm.if (text->realm) params->utils->free(text->realm);
to digestmd5_client_mech_step2 before setting the realm seems to have addressed the issues raised by Address Sanitizer for me.
Does this look legitimate?
Spencer