Add cast in python.c
[deliverable/binutils-gdb.git] / gdb / spu-linux-nat.c
index fd1f996fdd695e14f9951615b33e653083d69978..716212163ecc7dd8e6ad36d26fa0eb89d7bf51d4 100644 (file)
@@ -324,7 +324,7 @@ spu_bfd_open (ULONGEST addr)
   struct bfd *nbfd;
   asection *spu_name;
 
-  ULONGEST *open_closure = xmalloc (sizeof (ULONGEST));
+  ULONGEST *open_closure = XNEW (ULONGEST);
   *open_closure = addr;
 
   nbfd = gdb_bfd_openr_iovec ("<in-memory>", "elf32-spu",
This page took 0.02385 seconds and 4 git commands to generate.