mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
(This used to be commit 620f2e608f
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3bd3be97dc
commit
acf9d61421
@ -190,7 +190,7 @@ static BOOL message_send_pid_internal(pid_t pid, int msg_type, const void *buf,
|
||||
|
||||
kbuf = message_key_pid(pid);
|
||||
|
||||
dbuf.dptr = (void *)malloc(len + sizeof(rec));
|
||||
dbuf.dptr = (void *)SMB_MALLOC(len + sizeof(rec));
|
||||
if (!dbuf.dptr)
|
||||
return False;
|
||||
|
||||
@ -468,7 +468,7 @@ void message_register(int msg_type,
|
||||
{
|
||||
struct dispatch_fns *dfn;
|
||||
|
||||
dfn = (struct dispatch_fns *)malloc(sizeof(*dfn));
|
||||
dfn = SMB_MALLOC_P(struct dispatch_fns);
|
||||
|
||||
if (dfn != NULL) {
|
||||
|
||||
|
Reference in New Issue
Block a user