X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fser-pipe.c;h=9568a26c0ee7a3d968851f33c3db2420a86649ba;hb=9f1b45b0da430a7a7abf9e54acbe6f2ef9d3a763;hp=9c5b99b45c980d00a46842994470d18106076392;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index 9c5b99b45c..9568a26c0e 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -134,7 +134,7 @@ pipe_open (struct serial *scb, const char *name) if (err_pdes[1] != -1) close (err_pdes[1]); /* :end chunk */ - state = XMALLOC (struct pipe_state); + state = XNEW (struct pipe_state); state->pid = pid; scb->fd = pdes[0]; scb->error_fd = err_pdes[0];