aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-03 01:15:45 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-03 01:15:45 +0000
commit240f9570d5fd873479a18e00be49519cd3aedbfc (patch)
tree11adeae77af0844cb2fb8ea9965ab95d5788d465 /gdb/maint.c
parent10dd8b5466ad40b91cd6c0b8f7fd1a3df52a06a6 (diff)
downloadgdb-240f9570d5fd873479a18e00be49519cd3aedbfc.zip
gdb-240f9570d5fd873479a18e00be49519cd3aedbfc.tar.gz
gdb-240f9570d5fd873479a18e00be49519cd3aedbfc.tar.bz2
2011-03-02 Michael Snyder <msnyder@vmware.com>
* maint.c (maintenance_do_deprecate): No need to check for NULL.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c4
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. */