This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]