libibumad: fix freeing wrong memory on failure
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Jan 2010 06:08:38 +0000 (06:08 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Jan 2010 06:08:38 +0000 (06:08 +0000)
commit29ab0d815949cf6fb86185334a5297f30694d34b
tree78b7bfa0d45c9cd5d76bfd32efe92868da018d33
parent1d73349ef51e53c5d2882159971222a53950c648
libibumad: fix freeing wrong memory on failure

umad_get_ca() should free the allocated 'ports' memory on failure,
not the ca structure, which is provided by the user.

Bug reported by Leonid Keller.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2671 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/libibumad/src/umad.cpp