Mention PR gdb/17096 in ChangeLog
[deliverable/binutils-gdb.git] / gdb / opencl-lang.c
index 8dbd4cea255a1b4cdac92eb8bf656875ffddcc04..2dd76fac36eeb4694e4611d3ba62595f99bf758d 100644 (file)
@@ -156,11 +156,11 @@ struct lval_closure
 static struct lval_closure *
 allocate_lval_closure (int *indices, int n, struct value *val)
 {
-  struct lval_closure *c = XZALLOC (struct lval_closure);
+  struct lval_closure *c = XCNEW (struct lval_closure);
 
   c->refc = 1;
   c->n = n;
-  c->indices = XCALLOC (n, int);
+  c->indices = XCNEWVEC (int, n);
   memcpy (c->indices, indices, n * sizeof (int));
   value_incref (val); /* Increment the reference counter of the value.  */
   c->val = val;
This page took 0.023544 seconds and 4 git commands to generate.