mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Use OF_prop_free instead of direct call to free(9)
Reviewed by: sgalabov
This commit is contained in:
parent
6699a81195
commit
68dd3f144c
2 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ assert_deassert_all(device_t consumer, boolean_t assert)
|
|||
anyerrors = true;
|
||||
}
|
||||
}
|
||||
free(resets, M_OFWPROP);
|
||||
OF_prop_free(resets);
|
||||
return (anyerrors ? ENXIO : 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ mtk_pinctrl_process_node(device_t dev, struct mtk_pin_group *table,
|
|||
}
|
||||
|
||||
out:
|
||||
free(group_list, M_OFWPROP);
|
||||
free(pin_function, M_OFWPROP);
|
||||
OF_prop_free(group_list);
|
||||
OF_prop_free(pin_function);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue