mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
[params] Use reference counters for form parameter lists
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user