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

validate.  Closes 1220242.
This commit is contained in:
Skip Montanaro 2005-06-15 01:33:30 +00:00
parent d6d2c0d08b
commit d60fbd469e
1 changed files with 2 additions and 0 deletions

View File

@ -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);