More memory leaks from valgrind
This commit is contained in:
parent
38d4d4a35b
commit
752968eaf8
|
@ -280,21 +280,25 @@ PyMODINIT_FUNC init_sqlite3(void)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
PyDict_SetItemString(dict, "PARSE_DECLTYPES", tmp_obj);
|
PyDict_SetItemString(dict, "PARSE_DECLTYPES", tmp_obj);
|
||||||
|
Py_DECREF(tmp_obj);
|
||||||
|
|
||||||
if (!(tmp_obj = PyInt_FromLong(PARSE_COLNAMES))) {
|
if (!(tmp_obj = PyInt_FromLong(PARSE_COLNAMES))) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
PyDict_SetItemString(dict, "PARSE_COLNAMES", tmp_obj);
|
PyDict_SetItemString(dict, "PARSE_COLNAMES", tmp_obj);
|
||||||
|
Py_DECREF(tmp_obj);
|
||||||
|
|
||||||
if (!(tmp_obj = PyString_FromString(PYSQLITE_VERSION))) {
|
if (!(tmp_obj = PyString_FromString(PYSQLITE_VERSION))) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
PyDict_SetItemString(dict, "version", tmp_obj);
|
PyDict_SetItemString(dict, "version", tmp_obj);
|
||||||
|
Py_DECREF(tmp_obj);
|
||||||
|
|
||||||
if (!(tmp_obj = PyString_FromString(sqlite3_libversion()))) {
|
if (!(tmp_obj = PyString_FromString(sqlite3_libversion()))) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
PyDict_SetItemString(dict, "sqlite_version", tmp_obj);
|
PyDict_SetItemString(dict, "sqlite_version", tmp_obj);
|
||||||
|
Py_DECREF(tmp_obj);
|
||||||
|
|
||||||
/* initialize microprotocols layer */
|
/* initialize microprotocols layer */
|
||||||
microprotocols_init(dict);
|
microprotocols_init(dict);
|
||||||
|
|
Loading…
Reference in New Issue