summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
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;
}