net: Avoid tallocs
authorVolker Lendecke <vl@samba.org>
Fri, 30 Mar 2018 14:16:47 +0000 (09:16 -0500)
committerJeremy Allison <jra@samba.org>
Tue, 3 Apr 2018 22:44:23 +0000 (00:44 +0200)
commitc3341ed29a2182a3a5f6c05110acd25513767b1a
tree1b6e133d1c7af93de105658194932906e4540bc5
parent54db80e6e73169848aec89029ac2640a14c9af11
net: Avoid tallocs

Not really performance critical, but I think it's worth establishing sample
code to use more stack variables than going out to talloc.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/utils/net_cache.c