forked from Imagelibrary/binutils-gdb
2011-03-05 Michael Snyder <msnyder@vmware.com>
* ser-unix.c (hardwire_get_tty_state): Stop memory leak.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2011-03-06 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* ser-unix.c (hardwire_get_tty_state): Stop memory leak.
|
||||
|
||||
* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
|
||||
|
||||
* elfread.c (elf_symtab_read): Stop memory leak.
|
||||
|
||||
@@ -183,7 +183,10 @@ hardwire_get_tty_state (struct serial *scb)
|
||||
state = (struct hardwire_ttystate *) xmalloc (sizeof *state);
|
||||
|
||||
if (get_tty_state (scb, state))
|
||||
return NULL;
|
||||
{
|
||||
xfree (state);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return (serial_ttystate) state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user