]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Fix duplicate free of connect
authorSean Hefty <sean.hefty@intel.com>
Tue, 27 Sep 2011 18:19:36 +0000 (11:19 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 27 Sep 2011 18:19:36 +0000 (11:19 -0700)
commit20cf9c7bff72c5c0ac1ec7c99dadb7e095875bc6
treed2e650d05100bc429fd62f65b51284190395ac2e
parente92afcbe5284095d55aad937b8c23333368d4d62
librdmacm: Fix duplicate free of connect

The connect data stored with the cma_id_private is freed in
rdma_connect, since it is no longer needed.  Avoid duplicating
the free in rdma_destroy_id by checking for connect_len = 0,
rather than connect to be NULL.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c