This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC/readline] bind.c, rl_function_dumper, Free allocated memory.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, bug-readline at gnu dot org
- Date: Thu, 03 Mar 2011 14:38:00 -0800
- Subject: [RFC/readline] bind.c, rl_function_dumper, Free allocated memory.
OK?
2011-03-03 Michael Snyder <msnyder@vmware.com>
* bind.c (rl_function_dumper): Free allocated memory.
Index: bind.c
===================================================================
RCS file: /cvs/src/src/readline/bind.c,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 bind.c
--- bind.c 5 May 2006 18:26:12 -0000 1.8
+++ bind.c 3 Mar 2011 22:20:14 -0000
@@ -2068,6 +2068,7 @@ rl_function_dumper (print_readably)
}
}
}
+ free (names);
}
/* Print all of the current functions and their bindings to