diff options
Diffstat (limited to 'gdb/gdbserver/dll.c')
-rw-r--r-- | gdb/gdbserver/dll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbserver/dll.c b/gdb/gdbserver/dll.c index 1608527fffc..c4f838ca92c 100644 --- a/gdb/gdbserver/dll.c +++ b/gdb/gdbserver/dll.c @@ -60,8 +60,7 @@ match_dll (struct inferior_list_entry *inf, void *arg) void loaded_dll (const char *name, CORE_ADDR base_addr) { - struct dll_info *new_dll = xmalloc (sizeof (*new_dll)); - memset (new_dll, 0, sizeof (*new_dll)); + struct dll_info *new_dll = XCNEW (struct dll_info); new_dll->entry.id = minus_one_ptid; |