summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
authorMichael Brown2014-02-25 15:03:40 +0100
committerMichael Brown2014-02-27 00:34:07 +0100
commitc7b69ac793b7704c09560eb6850e4ec2bd66e575 (patch)
tree26a3a7bc1f4195ee5c39bf098bc44be43c3c5bf6 /src/hci
parent[settings] Remove "uristring" setting type (diff)
downloadipxe-c7b69ac793b7704c09560eb6850e4ec2bd66e575.tar.gz
ipxe-c7b69ac793b7704c09560eb6850e4ec2bd66e575.tar.xz
ipxe-c7b69ac793b7704c09560eb6850e4ec2bd66e575.zip
[params] Use reference counters for form parameter lists
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/commands/param_cmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hci/commands/param_cmd.c b/src/hci/commands/param_cmd.c
index a30c62af..6cf096d0 100644
--- a/src/hci/commands/param_cmd.c
+++ b/src/hci/commands/param_cmd.c
@@ -74,8 +74,10 @@ static int params_exec ( int argc, char **argv ) {
return -ENOMEM;
/* Destroy parameter list, if applicable */
- if ( opts.delete )
- destroy_parameters ( params );
+ if ( opts.delete ) {
+ claim_parameters ( params );
+ params_put ( params );
+ }
return 0;
}