mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
memory leak.
This commit is contained in:
1 parent
59c943ecf6
commit
da93d6753b
2 files changed
+9
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
|
* grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
|
||||||
|
|||||||
@@ -735,6 +735,7 @@ grub_legacy_check_md5_password (int argc, char **args,
|
|||||||
char *entered)
|
char *entered)
|
||||||
{
|
{
|
||||||
struct legacy_md5_password *pw = NULL;
|
struct legacy_md5_password *pw = NULL;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (args[0][0] != '-' || args[0][1] != '-')
|
if (args[0][0] != '-' || args[0][1] != '-')
|
||||||
{
|
{
|
||||||
@@ -751,7 +752,9 @@ grub_legacy_check_md5_password (int argc, char **args,
|
|||||||
if (!pw)
|
if (!pw)
|
||||||
return 0;
|
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
|
static grub_err_t
|
||||||
|
|||||||
Reference in new issue
Block a user