]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fcp] Fix potential memory leaks on error paths
authorMichael Brown <mcb30@ipxe.org>
Wed, 3 Nov 2010 01:48:38 +0000 (01:48 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 3 Nov 2010 01:48:59 +0000 (01:48 +0000)
commit0654698cd72bfb265191fde908787028c3fd353e
tree66b32effd7978facf9c1e7bed721c658fefe812c
parent41187aca2c42e49fab72c3114e6e7e53e0f07135
[fcp] Fix potential memory leaks on error paths

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>
src/net/fcp.c