diff options
author | Jeremy Allison <jra@samba.org> | 2004-12-07 18:25:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-12-07 18:25:53 +0000 |
commit | 65b7a21d331b7f0cfbc6bd6545adde00ce2826fa (patch) | |
tree | fcd3f6d39e40486c4042636106a700b4c263de25 /source/lib/system.c | |
parent | a411fc03345bf9b152536f0d33b460d5c89c2b30 (diff) | |
download | samba-65b7a21d331b7f0cfbc6bd6545adde00ce2826fa.tar.gz samba-65b7a21d331b7f0cfbc6bd6545adde00ce2826fa.tar.xz samba-65b7a21d331b7f0cfbc6bd6545adde00ce2826fa.zip |
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.
Diffstat (limited to 'source/lib/system.c')
-rw-r--r-- | source/lib/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/system.c b/source/lib/system.c index f33d1ae7d57..7434cbe35ee 100644 --- a/source/lib/system.c +++ b/source/lib/system.c @@ -1096,7 +1096,7 @@ static char **extract_args(const char *command) for( argcl = 1; ptr; ptr = strtok(NULL, " \t")) argcl++; - if((argl = (char **)malloc((argcl + 1) * sizeof(char *))) == NULL) + if((argl = (char **)SMB_MALLOC((argcl + 1) * sizeof(char *))) == NULL) return NULL; /* @@ -1178,7 +1178,7 @@ int sys_popen(const char *command) goto err_exit; } - if((entry = (popen_list *)malloc(sizeof(popen_list))) == NULL) + if((entry = SMB_MALLOC_P(popen_list)) == NULL) goto err_exit; ZERO_STRUCTP(entry); |