diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-14 12:58:19 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-14 22:22:10 +0200 |
commit | 49eccee209f01af043d084742bbbc9d4519eddfc (patch) | |
tree | f9b2e6628d8a0a8bcda87ed710d6421d97a725ad /source3/winbindd/winbindd_dual.c | |
parent | 97ba4f6efdcdb1e4f5d43ddeadfd06c7d96213f4 (diff) | |
download | samba-49eccee209f01af043d084742bbbc9d4519eddfc.tar.gz samba-49eccee209f01af043d084742bbbc9d4519eddfc.tar.xz samba-49eccee209f01af043d084742bbbc9d4519eddfc.zip |
Remove "winbindd_request" and "winbindd_response" from winbindd_cli_state
This shrinks the memory footprint of an idle client by 5592 bytes to 60 bytes
on my 32-bit box.
Diffstat (limited to 'source3/winbindd/winbindd_dual.c')
-rw-r--r-- | source3/winbindd/winbindd_dual.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 3e0d956a74..92f0d60817 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1316,6 +1316,8 @@ static bool fork_domain_child(struct winbindd_child *child) { int fdpair[2]; struct winbindd_cli_state state; + struct winbindd_request request; + struct winbindd_response response; struct winbindd_domain *primary_domain = NULL; if (child->domain) { @@ -1333,8 +1335,8 @@ static bool fork_domain_child(struct winbindd_child *child) ZERO_STRUCT(state); state.pid = sys_getpid(); - state.request = &state._request; - state.response = &state._response; + state.request = &request; + state.response = &response; child->pid = sys_fork(); |