+2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
+ memory leak.
+
2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
char *entered)
{
struct legacy_md5_password *pw = NULL;
+ int ret;
if (args[0][0] != '-' || args[0][1] != '-')
{
if (!pw)
return 0;
- return check_password_md5_real (entered, pw);
+ ret = check_password_md5_real (entered, pw);
+ grub_free (pw);
+ return ret;
}
static grub_err_t