From f18aca0bfc380337d99871f6255bd600c70015ca Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 31 Jan 2010 21:38:16 +0100 Subject: python/arfile.cc: Handle the case where ararchive_new returns NULL in debfile_new. --- python/arfile.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/arfile.cc') diff --git a/python/arfile.cc b/python/arfile.cc index 4f95a791..4f3b4ad7 100644 --- a/python/arfile.cc +++ b/python/arfile.cc @@ -523,6 +523,8 @@ static PyObject *_gettar(PyDebFileObject *self, const ARArchive::Member *m, static PyObject *debfile_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { PyDebFileObject *self = (PyDebFileObject*)ararchive_new(type, args, kwds); + if (self == NULL) + return NULL; // DebFile self->control = _gettar(self, self->Object->FindMember("control.tar.gz"), -- cgit v1.2.3