The pci_param_free(9F) interface must be called by the driver after obtaining the device parameters using the param handle. This call frees up the resources allocated by the pci_param_get() and pci_param_get_ioctl() interfaces.
int pci_param_free (pci_param_t param)
where param is a handle obtained from pci_param_get()or pci_param_get_ioctl() interfaces.