This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Use xfree() instead of free() in solib-aix5.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Use xfree() instead of free() in solib-aix5.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Tue, 27 Mar 2001 03:07:20 -0700
I've just checked in the patch below. Thanks to Mark Kettenis for
spotting this...
* solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
of free().
Index: solib-aix5.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-aix5.c,v
retrieving revision 1.8
diff -u -p -r1.8 solib-aix5.c
--- solib-aix5.c 2001/03/27 06:23:25 1.8
+++ solib-aix5.c 2001/03/27 09:58:39
@@ -200,7 +200,7 @@ build_so_list_from_mapfile (int pid, lon
xasprintf (&map_pathname, "/proc/%d/map", pid);
map_fd = open (map_pathname, O_RDONLY);
- free (map_pathname);
+ xfree (map_pathname);
if (map_fd < 0)
return 0;