]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - readline/xfree.c
MIPS/gas: Retain ISA mode bit for labels with .insn annotation
[thirdparty/binutils-gdb.git] / readline / xfree.c
index d3af7d9aef0b9a420dc9d50faaf6041ab9b016f4..c199b29bdfd769987494d6faa90270cea8625adf 100644 (file)
@@ -1,6 +1,6 @@
 /* xfree.c -- safe version of free that ignores attempts to free NUL */
 
-/* Copyright (C) 1991-2010 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2010,2017 Free Software Foundation, Inc.
 
    This file is part of the GNU Readline Library (Readline), a library
    for reading lines of text with interactive input and history editing.      
 #  include "ansi_stdlib.h"
 #endif /* HAVE_STDLIB_H */
 
-#include <stdio.h>
-
 #include "xmalloc.h"
-#include "readline.h"
 
 /* **************************************************************** */
 /*                                                                 */
 /* Use this as the function to call when adding unwind protects so we
    don't need to know what free() returns. */
 void
-xfree (string)
-     PTR_T string;
+xfree (PTR_T string)
 {
-  /* Leak a bit.  */
-  if (RL_ISSTATE(RL_STATE_SIGHANDLER))
-    return;
-
   if (string)
     free (string);
 }