[PATCH] Use xfree() instead of free() in solib-aix5.c

Kevin Buettner kevinb@cygnus.com
Tue Mar 27 02:08:00 GMT 2001


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;
 



More information about the Gdb-patches mailing list