From: Michael Snyder Date: Mon, 10 May 2010 17:26:36 +0000 (+0000) Subject: 2010-05-10 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c02866a09f06537feac674c2a62cc605d6aa7368;p=binutils-gdb.git 2010-05-10 Michael Snyder * utils.c (do_fclose_cleanup) Restore local variable. --- 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. */