* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
authorTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:20:48 +0000 (20:20 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:20:48 +0000 (20:20 +0000)
gdb/ChangeLog
gdb/python/py-cmd.c

index 949ae1953b68976d6f5bdbd9e805e775c4e6320d..64bac867141f5fc240bab0f1b0c961bfaebd4bab 100644 (file)
@@ -1,3 +1,7 @@
+2013-05-20  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
+
 2013-05-20  Tom Tromey  <tromey@redhat.com>
 
        * python/py-event.h (gdbpy_initialize_event_generic): Use
index ca9e415c4362a87fbc4177e045277cf49febd426..6516e1ff764d4b387bfacd0362cec9b162b8b017 100644 (file)
@@ -499,9 +499,12 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
            {
              xfree (cmd_name);
              xfree (pfx_name);
+             Py_DECREF (ds_obj);
              return -1;
            }
        }
+
+      Py_XDECREF (ds_obj);
     }
   if (! docstring)
     docstring = xstrdup (_("This command is not documented."));
This page took 0.026581 seconds and 4 git commands to generate.