diff options
author | Gerald Carter <jerry@samba.org> | 2004-12-16 12:30:49 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-12-16 12:30:49 +0000 |
commit | 8d91e07ef22ad3ed484b04bc4968380a24940696 (patch) | |
tree | b5b8989f8da9ef7f852081f0460995386edd4b5d /source/web/statuspage.c | |
parent | 1a878c865637feb80206c0dc599acebf7f4a46bd (diff) | |
download | samba-8d91e07ef22ad3ed484b04bc4968380a24940696.tar.gz samba-8d91e07ef22ad3ed484b04bc4968380a24940696.tar.xz samba-8d91e07ef22ad3ed484b04bc4968380a24940696.zip |
r4231: commiting changes to 3.0.10samba-3.0.10
Diffstat (limited to 'source/web/statuspage.c')
-rw-r--r-- | source/web/statuspage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/web/statuspage.c b/source/web/statuspage.c index 953222c2fc1..57b5d0f7b73 100644 --- a/source/web/statuspage.c +++ b/source/web/statuspage.c @@ -61,14 +61,14 @@ static void addPid2Machine (pid_t pid, char *machine) if (PID_or_Machine) { PIDMAP *newmap; - if ((newmap = (PIDMAP *) malloc (sizeof (PIDMAP))) == NULL) { + if ((newmap = SMB_MALLOC_P(PIDMAP)) == NULL) { /* XXX need error message for this? if malloc fails, PID is always shown */ return; } newmap->pid = pid; - newmap->machine = strdup (machine); + newmap->machine = SMB_STRDUP(machine); DLIST_ADD(pidmap, newmap); } |