2011-02-26 Michael Snyder <msnyder@vmware.com>
* maint.c (maintenance_do_deprecate): Plug a memory leak.
This commit is contained in:
parent
8c814cdde7
commit
66fd3b1e63
2 changed files with 5 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue