diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 9afb77c..fe1a099 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. */ |