[params] Use reference counters for form parameter lists

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-02-25 14:03:40 +00:00
parent 09b057ce84
commit c7b69ac793
4 changed files with 76 additions and 49 deletions

View File

@@ -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;
}