diff options
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index 101c2de..ca9b3cc 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -644,9 +644,7 @@ maintenance_do_deprecate (char *text, int deprecate) cmd->flags |= MALLOCED_REPLACEMENT; return; } - /* If we get here, don't leak! */ - if (replacement != NULL) - xfree (replacement); + xfree (replacement); } /* Maintenance set/show framework. */ |