1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/param
Stefan Metzmacher a84eed5325 lib/param: add a fixed unified lpcfg_string_{free,set,set_upper}() infrastructure
This reduces the memory footprint of empty string options.

smbd -d1 -i with 1400 shares in smb.conf under x64 valgrind massif before this
patch has 7,703,392 bytes peak memory consumption and after this patch
3,321,200 bytes.

This fixes a regression introduced by commit
2dd7c89079.

BUG:

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11625
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Nov 30 17:41:28 CET 2015 on sn-devel-104
2015-11-30 17:41:28 +01:00
..
loadparm_ctx.c s3:param: use lp_load_no_reinit() in lp_load_for_s4_ctx() 2015-04-22 13:57:30 +02:00
loadparm.c lib/param: add a fixed unified lpcfg_string_{free,set,set_upper}() infrastructure 2015-11-30 17:41:28 +01:00
pyparam.c s3-param: Rename loadparm_s3_context -> loadparm_s3_helpers 2012-06-27 17:11:16 +02:00
service.c param: remove unused get_share_params() 2014-11-26 21:27:21 +01:00
test_lp_load.c s3:param: remove arg save_defaults from lp_load_with_registry_shares() 2015-04-22 13:57:30 +02:00
util.c Change all uses of uint32/16/8 in proto.h to uint32_t/16_t/8_t. 2015-04-29 23:42:20 +02:00
wscript_build param: change s3_param.h from a generated file to a static one 2014-02-20 10:11:20 +13:00