Commit f4fa63a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 132fdf5d
......@@ -977,8 +977,13 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
}
self = (PyBigFile *)PyType_GenericNew(type, args, kw);
if (!self)
if (!self) {
Py_XDECREF(blkmmapper);
return NULL;
}
self->blkmmapper_pycapsule = blkmmapper;
self->blkmmap_ops = blkmmap_ops;
// FIXME "k" = unsigned long - we need size_t
static char *kw_list[] = {"blksize", NULL};
......
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