Fix several memory leaks.
This commit is contained in:
parent
c686014c1b
commit
03f7c8c304
13 changed files with 72 additions and 14 deletions
|
@ -87,7 +87,8 @@ failure_append_vtext(grub_test_failure_t failure, const char *fmt, va_list args)
|
|||
char *oldmsg = failure->message;
|
||||
|
||||
failure->message = grub_xasprintf("%s%s", oldmsg, msg);
|
||||
grub_free(oldmsg);
|
||||
grub_free (oldmsg);
|
||||
grub_free (msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue