Leak fix from Michael Hudson. Fix memory leak when dialect doesn't
validate. Closes 1220242.
This commit is contained in:
parent
d6d2c0d08b
commit
d60fbd469e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue