param: ensure CMD_LIST is freed when freeing a parameter
authorGarming Sam <garming@catalyst.net.nz>
Wed, 7 May 2014 23:43:53 +0000 (11:43 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jul 2014 21:32:35 +0000 (23:32 +0200)
commitd6486cf0d2bb206dd20b4e5ee2e17f1e770eeea7
treeb36a3260967d10397060c3a441ebdafc4e2a4ea2
parent49b500a61f0e1ed9d02654597c0785e7a1b933e9
param: ensure CMD_LIST is freed when freeing a parameter

As well as correctly deallocating the memory, this prevents a potential bug
where s3 globals struct may be freed, but it can be referred to
elsewhere.

Change-Id: I92fc9baa26aee5b4a35b767bed901928cbb7c74f
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
source3/param/loadparm.c