mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
Added total memory allocated counter to talloc, so we can tell if a talloc
pool is getting bloated. Also added a talloc_zero function to return zeroed memory. Added debug in rpc_server/srv_pipe_hnd.c so we know when a talloc pool is being freed. Syncup with srv_pipe_hnd.c from 2.2 so we are freeing memory at the same time. Jeremy.
This commit is contained in:
@@ -401,10 +401,10 @@ BOOL smb_io_notify_info_data_strings(char *desc,SPOOL_NOTIFY_INFO_DATA *data,
|
||||
|
||||
/* Tallocate memory for string */
|
||||
|
||||
DEBUG(0, ("** tallocating memory\n"));
|
||||
DEBUG(10, ("** tallocating memory\n"));
|
||||
|
||||
data->notify_data.data.string = (uint16 *)
|
||||
talloc(ps->mem_ctx, x * 2);
|
||||
talloc_zero(ps->mem_ctx, x * 2);
|
||||
if (!data->notify_data.data.string)
|
||||
return False;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user