summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r--Modules/binascii.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index afe4988..ffc2c59 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -1024,10 +1024,7 @@ binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header)
out++;
}
}
- if ((rv = PyBytes_FromStringAndSize((char *)odata, out)) == NULL) {
- PyMem_Free(odata);
- return NULL;
- }
+ rv = PyBytes_FromStringAndSize((char *)odata, out);
PyMem_Free(odata);
return rv;
}
@@ -1232,10 +1229,7 @@ binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
}
}
}
- if ((rv = PyBytes_FromStringAndSize((char *)odata, out)) == NULL) {
- PyMem_Free(odata);
- return NULL;
- }
+ rv = PyBytes_FromStringAndSize((char *)odata, out);
PyMem_Free(odata);
return rv;
}