Functions that instantiate objects generally own one reference to the
object being created. The error paths must therefore usually call
ref_put() to release this reference.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
err_xchg_originate:
fcpcmd_close ( fcpcmd, rc );
+ ref_put ( &fcpcmd->refcnt );
err_zalloc:
err_target:
err_link:
err_scsi_open:
fcpdev_close ( fcpdev, rc );
+ ref_put ( &fcpdev->refcnt );
err_zalloc:
fc_ulp_put ( ulp );
err_ulp_get: