projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git]
/
gdb
/
gdbserver
/
hostio.c
diff --git
a/gdb/gdbserver/hostio.c
b/gdb/gdbserver/hostio.c
index 8788f0739180f7c2642c6ea7487c24bc9fd49acf..a631d9e771c04d8be23d4fa8b5f685edd0618e7d 100644
(file)
--- a/
gdb/gdbserver/hostio.c
+++ b/
gdb/gdbserver/hostio.c
@@
-331,7
+331,7
@@
handle_open (char *own_buf)
}
/* Record the new file descriptor. */
- new_fd =
xmalloc (sizeof (struct fd_list)
);
+ new_fd =
XNEW (struct fd_list
);
new_fd->fd = fd;
new_fd->next = open_fds;
open_fds = new_fd;
This page took
0.025687 seconds
and
4
git commands to generate.