mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -223,10 +223,13 @@ zs_open(unsigned long *address)
|
||||
*address = *prop;
|
||||
fword("my-args");
|
||||
args = pop_fstr_copy();
|
||||
if (args && args[0] == 'a')
|
||||
*address += 4;
|
||||
if (args) {
|
||||
if (args[0] == 'a')
|
||||
*address += 4;
|
||||
//printk("zs_open: address %lx, args %s\n", *address, args);
|
||||
free(args);
|
||||
}
|
||||
|
||||
//printk("zs_open: address %lx, args %s\n", *address, args);
|
||||
RET ( -1 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user