mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
2011-02-26 Michael Snyder <msnyder@vmware.com>
* maint.c (maintenance_do_deprecate): Plug a memory leak.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2011-02-26 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* maint.c (maintenance_do_deprecate): Plug a memory leak.
|
||||
|
||||
* dwarf2loc.c (insert_bits): Avoid shadowing a function param
|
||||
with a local variable of the same name.
|
||||
|
||||
|
||||
@@ -644,6 +644,9 @@ maintenance_do_deprecate (char *text, int deprecate)
|
||||
cmd->flags |= MALLOCED_REPLACEMENT;
|
||||
return;
|
||||
}
|
||||
/* If we get here, don't leak! */
|
||||
if (replacement != NULL)
|
||||
xfree (replacement);
|
||||
}
|
||||
|
||||
/* Maintenance set/show framework. */
|
||||
|
||||
Reference in New Issue
Block a user