forked from Imagelibrary/binutils-gdb
* utils.c (xmalloc,xcalloc,xstrdup): New fns.
* server.h (ATTR_MALLOC): New macro. (xmalloc,xcalloc,xstrdup): Declare. * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. * inferiors.c: Ditto. * linux-low.c: Ditto. * mem-break.c: Ditto. * regcache.c: Ditto. * remote-utils.c: Ditto. * server.c: Ditto. * target.c: Ditto. * win32-low.c: Ditto.
This commit is contained in:
@@ -176,7 +176,7 @@ child_add_thread (DWORD tid, HANDLE h)
|
||||
if ((th = thread_rec (tid, FALSE)))
|
||||
return th;
|
||||
|
||||
th = calloc (1, sizeof (*th));
|
||||
th = xcalloc (1, sizeof (*th));
|
||||
th->tid = tid;
|
||||
th->h = h;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user