normal: fix memory leak
Found by: Coverity scan. CID: 96641, 96670, 96667
This commit is contained in:
parent
29862fdc3a
commit
26533fe6bc
2 changed files with 8 additions and 3 deletions
|
@ -77,8 +77,6 @@ print_more (void)
|
|||
grub_term_output_t term;
|
||||
grub_uint32_t *unicode_str, *unicode_last_position;
|
||||
|
||||
pos = grub_term_save_pos ();
|
||||
|
||||
/* TRANSLATORS: This has to fit on one line. It's ok to include few
|
||||
words but don't write poems. */
|
||||
grub_utf8_to_ucs4_alloc (_("--MORE--"), &unicode_str,
|
||||
|
@ -90,6 +88,8 @@ print_more (void)
|
|||
return;
|
||||
}
|
||||
|
||||
pos = grub_term_save_pos ();
|
||||
|
||||
grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
|
||||
|
||||
FOR_ACTIVE_TERM_OUTPUTS(term)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue