Fix pop_fstr_copy memory leaks

- console one prevented Debian 3.1r1 from installing in console=prom mode
- fixing this also needed the real malloc/free



git-svn-id: svn://coreboot.org/openbios/openbios-devel@155 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2007-06-27 20:16:01 +00:00
parent 8980119c27
commit e3db406e09
5 changed files with 21 additions and 9 deletions

View File

@@ -279,8 +279,14 @@ ob_sd_open(__attribute__((unused))sd_private_t **sd)
*sd = &global_esp->sd[id];
#ifdef CONFIG_DEBUG_ESP
fword("my-args");
DPRINTF("opening drive %d args %s\n", id, pop_fstr_copy());
{
char *args;
fword("my-args");
args = pop_fstr_copy();
DPRINTF("opening drive %d args %s\n", id, args);
free(args);
}
#endif
selfword("open-deblocker");