diff options
Diffstat (limited to 'python/header-py.c')
-rw-r--r-- | python/header-py.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/header-py.c b/python/header-py.c index 42a73a0be..f99cf5e48 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -546,6 +546,8 @@ PyTypeObject hdr_Type = { PyObject * hdr_Wrap(Header h) { hdrObject * hdr = PyObject_New(hdrObject, &hdr_Type); + if (hdr == NULL) return PyErr_NoMemory(); + hdr->h = headerLink(h); return (PyObject *) hdr; } |