From c02866a09f06537feac674c2a62cc605d6aa7368 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 10 May 2010 17:26:36 +0000 Subject: [PATCH] 2010-05-10 Michael Snyder * utils.c (do_fclose_cleanup) Restore local variable. --- gdb/ChangeLog | 4 ++++ gdb/utils.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff4e25ff315..1d7962a8457 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-05-10 Michael Snyder + + * utils.c (do_fclose_cleanup) Restore local variable. + 2010-05-09 Doug Evans * record.c (init_record_core_ops): Rename record_core to record-core. diff --git a/gdb/utils.c b/gdb/utils.c index 9afb77c68d6..fe1a099ef1d 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -266,7 +266,8 @@ make_cleanup_close (int fd) static void do_fclose_cleanup (void *arg) { - fclose (arg); + FILE *file = arg; + fclose (file); } /* Return a new cleanup that closes FILE. */ -- 2.30.2