]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-value.c
Replace some xmalloc-family functions with XNEW-family ones
[thirdparty/binutils-gdb.git] / gdb / python / py-value.c
index ec26bc8c005c8e6e874d6ffcf27f32a4691c8fe6..ac6b224b005887c3714b0e51ad5dead599dea1ba 100644 (file)
@@ -858,7 +858,7 @@ valpy_call (PyObject *self, PyObject *args, PyObject *keywords)
     {
       int i;
 
-      vargs = alloca (sizeof (struct value *) * args_count);
+      vargs = XALLOCAVEC (struct value *, args_count);
       for (i = 0; i < args_count; i++)
        {
          PyObject *item = PyTuple_GetItem (args, i);