crash printing non-local variable from nested subprogram
[deliverable/binutils-gdb.git] / gdb / ctf.c
index 98913213084a5440fbb3ddd9157a7287294ed0ab..6e7c6163ba3b3324c88c68c8b0a057167b7dbf90 100644 (file)
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -810,8 +810,7 @@ static const struct trace_file_write_ops ctf_write_ops =
 struct trace_file_writer *
 ctf_trace_file_writer_new (void)
 {
-  struct ctf_trace_file_writer *writer
-    = xmalloc (sizeof (struct ctf_trace_file_writer));
+  struct ctf_trace_file_writer *writer = XNEW (struct ctf_trace_file_writer);
 
   writer->base.ops = &ctf_write_ops;
 
This page took 0.024384 seconds and 4 git commands to generate.