From 2b5436af18f524fe06dc946353b455c2e7179669 Mon Sep 17 00:00:00 2001 From: "John R. Moore" Date: Fri, 2 Feb 2001 19:37:48 +0000 Subject: [PATCH] * cli/cli-cmds.c (apropos_command): Changed occurance of free() to xfree(). Also changed Copyright to include 2001. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-cmds.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fe92a3a..2df3d33 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-02-02 John Moore + + * cli/cli-cmds.c (apropos_command): Changed occurance of free() to + xfree(). Also changed Copyright to include 2001. + 2001-02-02 J.T. Conklin * monitor.c (#include "gdb_wait.h"): Removed. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index edf9b4d..4cc4aa3 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1,5 +1,5 @@ /* GDB CLI commands. - Copyright 2000 Free Software Foundation, Inc. + Copyright 2000, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -557,7 +557,7 @@ apropos_command (char *searchstr, int from_tty) regerror(regcomp(&pattern,searchstr,REG_ICASE),NULL,errorbuffer,512); error("Error in regular expression:%s",errorbuffer); } - free(pattern_fastmap); + xfree (pattern_fastmap); } static void -- 2.7.4