* python/py-event.c (gdbpy_initialize_event_generic): Return
authorTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:26:39 +0000 (20:26 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:26:39 +0000 (20:26 +0000)
early if PyType_Ready fails.

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

index 4894c0d089513af380bb491442c12aa2eabcf298..5c4e29067a8bff417734cb3d0afb5dafb0ce4ff3 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-20  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-event.c (gdbpy_initialize_event_generic): Return
+       early if PyType_Ready fails.
+
 2013-05-20  Tom Tromey  <tromey@redhat.com>
 
        * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
index afd07feca509ebc19a356321fc97e9c742b5f8a6..72d57cb8254840ca23cb1de88a44c1a134fc0135 100644 (file)
@@ -76,7 +76,7 @@ gdbpy_initialize_event_generic (PyTypeObject *type,
                                 char *name)
 {
   if (PyType_Ready (type) < 0)
-    goto fail;
+    return -1;
 
   Py_INCREF (type);
   if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0)
This page took 0.029626 seconds and 4 git commands to generate.