Commit d60fbd46 authored by Skip Montanaro's avatar Skip Montanaro

Leak fix from Michael Hudson. Fix memory leak when dialect doesn't

validate.  Closes 1220242.
parent d6d2c0d0
......@@ -416,7 +416,9 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
}
ret = (PyObject *)self;
Py_INCREF(self);
err:
Py_XDECREF(self);
Py_XDECREF(dialect);
Py_XDECREF(delimiter);
Py_XDECREF(doublequote);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment