1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-11 08:23:49 +03:00

r6678: fix python python after talloc() shakeup

This commit is contained in:
Gerald Carter
2005-05-09 12:43:12 +00:00
committed by Gerald (Jerry) Carter
parent 3b2cd19fcb
commit f629bffb1a
9 changed files with 14 additions and 13 deletions

View File

@@ -235,7 +235,7 @@ static PyObject *py_smb_read(PyObject *self, PyObject *args, PyObject *kw)
if (size < 1 || size > fsize - offset)
size = fsize - offset;
if (!(data = (char *) malloc((size_t) size))) {
if (!(data = SMB_XMALLOC_ARRAY(char, size))) {
PyErr_SetString(PyExc_RuntimeError, "malloc failed");
return NULL;
}