* maint.c (maintenance_do_deprecate): Plug a memory leak.
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.
cmd->flags |= MALLOCED_REPLACEMENT;
return;
}
+ /* If we get here, don't leak! */
+ if (replacement != NULL)
+ xfree (replacement);
}
/* Maintenance set/show framework. */