+2017-01-31  Pedro Alves  <palves@redhat.com>
+
+       * stack.c (print_frame_args): Remove local mem_fileopen stream,
+       not used.
+
 2017-01-31  Pedro Alves  <palves@redhat.com>
 
        * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
 
   long highest_offset = -1;
   /* Number of ints of arguments that we have printed so far.  */
   int args_printed = 0;
-  struct cleanup *old_chain;
-  struct ui_file *stb;
   /* True if we should print arguments, false otherwise.  */
   int print_args = strcmp (print_frame_arguments, "none");
 
-  stb = mem_fileopen ();
-  old_chain = make_cleanup_ui_file_delete (stb);
-
   if (func)
     {
       const struct block *b = SYMBOL_BLOCK_VALUE (func);
       print_frame_nameless_args (frame, start, num - args_printed,
                                 first, stream);
     }
-
-  do_cleanups (old_chain);
 }
 
 /* Set the current source and line to the location given by frame