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:
committed by
Gerald (Jerry) Carter
parent
3b2cd19fcb
commit
f629bffb1a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user