]> Git Repo - binutils.git/commitdiff
* py-cmd.c (gdbpy_string_to_argv): Check result of
authorTom Tromey <[email protected]>
Mon, 20 May 2013 20:14:51 +0000 (20:14 +0000)
committerTom Tromey <[email protected]>
Mon, 20 May 2013 20:14:51 +0000 (20:14 +0000)
PyList_New.

gdb/ChangeLog
gdb/python/py-cmd.c

index 34a73f6e88e4d354e85af94226fc1de70e1d0d18..a9f4354e03306a217d09b7df0baf4fca23ff75f5 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-20  Tom Tromey  <[email protected]>
+
+       * py-cmd.c (gdbpy_string_to_argv): Check result of
+       PyList_New.
+
 2013-05-20  Tom Tromey  <[email protected]>
 
        * python/python.c (before_prompt_hook): Add cleanup to
index 3da9960c58029a4d02083aad0162cdf2e95308bc..ca9e415c4362a87fbc4177e045277cf49febd426 100644 (file)
@@ -668,6 +668,8 @@ gdbpy_string_to_argv (PyObject *self, PyObject *args)
     return NULL;
 
   py_argv = PyList_New (0);
+  if (py_argv == NULL)
+    return NULL;
 
   /* buildargv uses NULL to represent an empty argument list, but we can't use
      that in Python.  Instead, if ARGS is "" then return an empty list.
This page took 0.040922 seconds and 4 git commands to generate.