[s3]loadparm: refactor freeing of parameter data out and reduce memleak.
authorMichael Adam <obnox@samba.org>
Sat, 27 Sep 2008 20:19:56 +0000 (22:19 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 27 Sep 2008 20:28:27 +0000 (22:28 +0200)
commit3358a139d2dc77eb4c842d41722b1acc24bd2cb2
tree49b1fdfe9992c45e72b95198aa17df04d6a1cf4a
parente56c89b5e85f565e03818abc4fa5354bdf473dee
[s3]loadparm: refactor freeing of parameter data out and reduce memleak.

Add new functions free_parameter(), free_parameters() and
free_global_parameters() and use these in the appropriate places,
reducing code duplication.

Also, always TALLOC_FREE data of type P_LIST, thus reducing mem-leaks:
This had not been done in init_globals before.

Michael
source3/param/loadparm.c