* cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
authorTom Tromey <tromey@redhat.com>
Mon, 17 Jan 2011 16:50:42 +0000 (16:50 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 17 Jan 2011 16:50:42 +0000 (16:50 +0000)
commitdc92e16124ca764e536f2457635749e5431c4765
tree4435d0e6b715c61188acf0aea2a92112a44515f2
parentda17376b704177fc4d8fa038169782e28b1f3b24
* cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
get_regcomp_error.
* utils.c: Include gdb_regex.h.
(do_regfree_cleanup): New function.
(make_regfree_cleanup): Likewise.
(get_regcomp_error): Likewise.
* gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/gdb_regex.h
gdb/utils.c